diff --git a/.changes/bump-to-libwebrtc-m144 b/.changes/bump-to-libwebrtc-m144 new file mode 100644 index 000000000..0d21f2e63 --- /dev/null +++ b/.changes/bump-to-libwebrtc-m144 @@ -0,0 +1 @@ +minor type="changed" "Bump flutter-webrtc to 1.4.0 and upgrade to libwebrtc m144 (iOS/macOS)" diff --git a/ios/livekit_client.podspec b/ios/livekit_client.podspec index ddceec73e..9d4ff3630 100644 --- a/ios/livekit_client.podspec +++ b/ios/livekit_client.podspec @@ -16,6 +16,6 @@ Pod::Spec.new do |s| s.static_framework = true s.dependency 'Flutter' - s.dependency 'WebRTC-SDK', '137.7151.04' + s.dependency 'WebRTC-SDK', '144.7559.01' s.dependency 'flutter_webrtc' end diff --git a/lib/src/extensions.dart b/lib/src/extensions.dart index 7c678a86f..444b54bac 100644 --- a/lib/src/extensions.dart +++ b/lib/src/extensions.dart @@ -261,10 +261,11 @@ extension ParticipantTypeExt on lk_models.ParticipantInfo_Kind { extension DegradationPreferenceExt on DegradationPreference { rtc.RTCDegradationPreference toRTCType() => { - DegradationPreference.disabled: rtc.RTCDegradationPreference.DISABLED, DegradationPreference.maintainFramerate: rtc.RTCDegradationPreference.MAINTAIN_FRAMERATE, DegradationPreference.maintainResolution: rtc.RTCDegradationPreference.MAINTAIN_RESOLUTION, DegradationPreference.balanced: rtc.RTCDegradationPreference.BALANCED, + DegradationPreference.maintainFramerateAndResolution: + rtc.RTCDegradationPreference.MAINTAIN_FRAMERATE_AND_RESOLUTION, }[this]!; } diff --git a/lib/src/options.dart b/lib/src/options.dart index f37cf43de..1149b2815 100644 --- a/lib/src/options.dart +++ b/lib/src/options.dart @@ -175,10 +175,12 @@ class RoomOptions { } enum DegradationPreference { + @Deprecated('DISABLED is Deprecated for DegradationPreference') disabled, maintainFramerate, maintainResolution, balanced, + maintainFramerateAndResolution, } class BackupVideoCodec { diff --git a/macos/livekit_client.podspec b/macos/livekit_client.podspec index 03c93f6a5..a41df5414 100644 --- a/macos/livekit_client.podspec +++ b/macos/livekit_client.podspec @@ -16,6 +16,6 @@ Pod::Spec.new do |s| s.static_framework = true s.dependency 'FlutterMacOS' - s.dependency 'WebRTC-SDK', '137.7151.04' + s.dependency 'WebRTC-SDK', '144.7559.01' s.dependency 'flutter_webrtc' end diff --git a/pubspec.yaml b/pubspec.yaml index 19c385027..7add67a90 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,8 +46,8 @@ dependencies: json_annotation: ^4.9.0 # Fix version to avoid version conflicts between WebRTC-SDK pods, which both this package and flutter_webrtc depend on. - flutter_webrtc: 1.3.0 - dart_webrtc: ^1.7.0 + flutter_webrtc: 1.4.0 + dart_webrtc: ^1.8.0 dev_dependencies: flutter_test: