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

Unified Diff: webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m

Issue 2770113004: Pass settings model to ARDAppClient instead of individual settings. (Closed)
Patch Set: Fix test. 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/mac/APPRTCViewController.m
diff --git a/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m b/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m
index bcf26b258e745076693a60778653b98b5cc83dbf..69c537aad68c21bbfb695cb8c27f6e055b532460 100644
--- a/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m
+++ b/webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m
@@ -16,6 +16,7 @@
#import "WebRTC/RTCVideoTrack.h"
#import "ARDAppClient.h"
+#import "ARDSettingsModel.h"
static NSUInteger const kContentWidth = 900;
static NSUInteger const kRoomFieldWidth = 200;
@@ -369,9 +370,9 @@ static NSUInteger const kBottomViewHeight = 200;
}
[_client disconnect];
- ARDAppClient *client = [[ARDAppClient alloc] initWithDelegate:self
- preferVideoCodec:@"H264"];
+ ARDAppClient* client = [[ARDAppClient alloc] initWithDelegate:self];
[client connectToRoomWithId:roomId
+ settings:[[ARDSettingsModel alloc] init] // Use default settings.
isLoopback:isLoopback
isAudioOnly:NO
shouldMakeAecDump:NO

Powered by Google App Engine
This is Rietveld 408576698