Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Sep 14, 2023
1 parent e8956e8 commit cecb34d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/macos/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :osx, '10.11'
platform :osx, '10.14'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
2 changes: 1 addition & 1 deletion ios/livekit_client.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.static_framework = true

s.dependency 'Flutter'
s.dependency 'WebRTC-SDK', '114.5735.02'
s.dependency 'WebRTC-SDK', '114.5735.06'
end
8 changes: 4 additions & 4 deletions lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ class Utils {
if (scalabilityMode != null && isSVCCodec(options.videoCodec)) {
logger.info('using svc with scalabilityMode ${scalabilityMode}');

final sm = ScalabilityMode(scalabilityMode);

List<rtc.RTCRtpEncoding> encodings = [];
//final sm = ScalabilityMode(scalabilityMode);

List<rtc.RTCRtpEncoding> encodings = [videoEncoding.toRTCRtpEncoding()];
/*
if (sm.spatial > 3) {
throw Exception('unsupported scalabilityMode: ${scalabilityMode}');
}
Expand All @@ -448,7 +448,7 @@ class Utils {
scaleResolutionDownBy: null,
numTemporalLayers: sm.temporal.toInt(),
));
}
}*/
encodings[0].scalabilityMode = scalabilityMode;
logger.fine('encodings $encodings');
return encodings;
Expand Down
2 changes: 1 addition & 1 deletion macos/livekit_client.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.static_framework = true

s.dependency 'FlutterMacOS'
s.dependency 'WebRTC-SDK', '114.5735.02'
s.dependency 'WebRTC-SDK', '114.5735.06'
end
9 changes: 7 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ dependencies:
uuid: ^3.0.6
synchronized: ^3.0.0+3
protobuf: ^3.0.0
flutter_webrtc: 0.9.40
flutter_webrtc:
git:
url: https://github.com/flutter-webrtc/flutter-webrtc.git
ref: feat/support-scalability-mode

flutter_window_close: ^0.2.2
device_info_plus: ^9.0.0
js: ^0.6.4
platform_detect: ^2.0.7
dart_webrtc: 1.1.2
dart_webrtc: 1.1.3
sdp_transform: ^0.3.2

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit cecb34d

Please sign in to comment.