From 06783cad5ca3e97bdfcf10368deb28fb6a888f2f Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Mon, 28 Nov 2022 11:19:31 +0800 Subject: [PATCH] release: 1.1.9. --- CHANGELOG.md | 5 +++++ example/lib/widgets/controls.dart | 10 ++++++++++ example/pubspec.lock | 4 ++-- lib/src/livekit.dart | 2 +- pubspec.lock | 2 +- pubspec.yaml | 4 ++-- 6 files changed, 21 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad1ed81..a5fc83e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## 1.1.9 + +* Bump flutter-webrtc to 0.9.17 +* Enable BroadCastExtension for iOS in example. + ## 1.1.8 * Fix resume/full-reconnect. diff --git a/example/lib/widgets/controls.dart b/example/lib/widgets/controls.dart index 7bbf910..ec72f80 100644 --- a/example/lib/widgets/controls.dart +++ b/example/lib/widgets/controls.dart @@ -171,6 +171,16 @@ class _ControlsWidgetState extends State { print('could not publish video: $e'); } } + if (WebRTC.platformIsIOS) { + var track = await LocalVideoTrack.createScreenShareTrack( + const ScreenShareCaptureOptions( + useiOSBroadcastExtension: true, + maxFrameRate: 15.0, + ), + ); + await participant.publishVideoTrack(track); + return; + } await participant.setScreenShareEnabled(true, captureScreenAudio: true); } diff --git a/example/pubspec.lock b/example/pubspec.lock index 9f98e18..89f7deb 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -225,7 +225,7 @@ packages: name: flutter_webrtc url: "https://pub.dartlang.org" source: hosted - version: "0.9.14" + version: "0.9.17" google_fonts: dependency: "direct main" description: @@ -274,7 +274,7 @@ packages: path: ".." relative: true source: path - version: "1.1.7" + version: "1.1.9" logging: dependency: "direct main" description: diff --git a/lib/src/livekit.dart b/lib/src/livekit.dart index 3189eea..46594d7 100644 --- a/lib/src/livekit.dart +++ b/lib/src/livekit.dart @@ -5,7 +5,7 @@ import 'types/other.dart'; /// Main entry point to connect to a room. /// {@category Room} class LiveKitClient { - static const version = '1.0.0'; + static const version = '1.1.9'; /// Convenience method for connecting to a LiveKit server. /// Returns a [Room] upon a successful connect or throws when it fails. diff --git a/pubspec.lock b/pubspec.lock index 7ce1c93..875f0e2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -260,7 +260,7 @@ packages: name: flutter_webrtc url: "https://pub.dartlang.org" source: hosted - version: "0.9.14" + version: "0.9.17" glob: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 469f4d3..b15057e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: livekit_client description: Flutter Client SDK for LiveKit. Build real-time video and audio into your apps. Supports iOS, Android, and Web. -version: 1.1.8 +version: 1.1.9 homepage: https://livekit.io environment: @@ -23,7 +23,7 @@ dependencies: uuid: ^3.0.6 synchronized: ^3.0.0+3 protobuf: ^2.1.0 - flutter_webrtc: 0.9.14 + flutter_webrtc: 0.9.17 dart_webrtc: 1.0.11 device_info_plus: ^6.0.0 webrtc_interface: 1.0.10