Skip to content

Commit 4af50af

Browse files
chore: bump flutter-webrtc and upgrade to libwebrtc m144. (#1029)
Changes: * Bump libwebrtc to m144. * Added `DataPacketCryptor` support for Windows/Linux. * Add enum `KeyDerivationAlgorithm` to KeyProviderOptions (support HKDF). --------- Co-authored-by: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com>
1 parent ab7a682 commit 4af50af

6 files changed

Lines changed: 9 additions & 5 deletions

File tree

.changes/bump-to-libwebrtc-m144

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
minor type="changed" "Bump flutter-webrtc to 1.4.0 and upgrade to libwebrtc m144 (iOS/macOS)"

ios/livekit_client.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
1616
s.static_framework = true
1717

1818
s.dependency 'Flutter'
19-
s.dependency 'WebRTC-SDK', '137.7151.04'
19+
s.dependency 'WebRTC-SDK', '144.7559.01'
2020
s.dependency 'flutter_webrtc'
2121
end

lib/src/extensions.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,11 @@ extension ParticipantTypeExt on lk_models.ParticipantInfo_Kind {
261261

262262
extension DegradationPreferenceExt on DegradationPreference {
263263
rtc.RTCDegradationPreference toRTCType() => {
264-
DegradationPreference.disabled: rtc.RTCDegradationPreference.DISABLED,
265264
DegradationPreference.maintainFramerate: rtc.RTCDegradationPreference.MAINTAIN_FRAMERATE,
266265
DegradationPreference.maintainResolution: rtc.RTCDegradationPreference.MAINTAIN_RESOLUTION,
267266
DegradationPreference.balanced: rtc.RTCDegradationPreference.BALANCED,
267+
DegradationPreference.maintainFramerateAndResolution:
268+
rtc.RTCDegradationPreference.MAINTAIN_FRAMERATE_AND_RESOLUTION,
268269
}[this]!;
269270
}
270271

lib/src/options.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,12 @@ class RoomOptions {
175175
}
176176

177177
enum DegradationPreference {
178+
@Deprecated('DISABLED is Deprecated for DegradationPreference')
178179
disabled,
179180
maintainFramerate,
180181
maintainResolution,
181182
balanced,
183+
maintainFramerateAndResolution,
182184
}
183185

184186
class BackupVideoCodec {

macos/livekit_client.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
1616
s.static_framework = true
1717

1818
s.dependency 'FlutterMacOS'
19-
s.dependency 'WebRTC-SDK', '137.7151.04'
19+
s.dependency 'WebRTC-SDK', '144.7559.01'
2020
s.dependency 'flutter_webrtc'
2121
end

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ dependencies:
4646
json_annotation: ^4.9.0
4747

4848
# Fix version to avoid version conflicts between WebRTC-SDK pods, which both this package and flutter_webrtc depend on.
49-
flutter_webrtc: 1.3.0
50-
dart_webrtc: ^1.7.0
49+
flutter_webrtc: 1.4.0
50+
dart_webrtc: ^1.8.0
5151

5252
dev_dependencies:
5353
flutter_test:

0 commit comments

Comments
 (0)