Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m

Issue 2770113004: Pass settings model to ARDAppClient instead of individual settings. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
index f58ee6613c435cca2403bf43ffdc01c983494362..06ca59ef32f9e2fa6840de79af0f81c4162a3d2c 100644
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m
@@ -45,17 +45,10 @@
delegate:(id<ARDVideoCallViewControllerDelegate>)delegate {
if (self = [super init]) {
ARDSettingsModel *settingsModel = [[ARDSettingsModel alloc] init];
- NSString* videoCodec = [settingsModel currentVideoCodecSettingFromStore];
_delegate = delegate;
- _client = [[ARDAppClient alloc] initWithDelegate:self
- preferVideoCodec:videoCodec];
- RTCMediaConstraints *cameraConstraints = [[RTCMediaConstraints alloc]
- initWithMandatoryConstraints:nil
- optionalConstraints:[settingsModel
- currentMediaConstraintFromStoreAsRTCDictionary]];
- [_client setMaxBitrate:[settingsModel currentMaxBitrateSettingFromStore]];
- [_client setCameraConstraints:cameraConstraints];
+ _client = [[ARDAppClient alloc] initWithDelegate:self];
[_client connectToRoomWithId:room
+ usingSettings:settingsModel
isLoopback:isLoopback
isAudioOnly:isAudioOnly
shouldMakeAecDump:shouldMakeAecDump

Powered by Google App Engine
This is Rietveld 408576698