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

Side by Side Diff: webrtc/examples/objc/AppRTCMobile/ARDAppClient.h

Issue 2735303004: Add video codec setting to AppRTCMobile on iOS. (Closed)
Patch Set: Fix AppRTCMobile on Mac. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // class should only be called from the main queue. 53 // class should only be called from the main queue.
54 @interface ARDAppClient : NSObject 54 @interface ARDAppClient : NSObject
55 55
56 // If |shouldGetStats| is true, stats will be reported in 1s intervals through 56 // If |shouldGetStats| is true, stats will be reported in 1s intervals through
57 // the delegate. 57 // the delegate.
58 @property(nonatomic, assign) BOOL shouldGetStats; 58 @property(nonatomic, assign) BOOL shouldGetStats;
59 @property(nonatomic, readonly) ARDAppClientState state; 59 @property(nonatomic, readonly) ARDAppClientState state;
60 @property(nonatomic, weak) id<ARDAppClientDelegate> delegate; 60 @property(nonatomic, weak) id<ARDAppClientDelegate> delegate;
61 // Convenience constructor since all expected use cases will need a delegate 61 // Convenience constructor since all expected use cases will need a delegate
62 // in order to receive remote tracks. 62 // in order to receive remote tracks.
63 - (instancetype)initWithDelegate:(id<ARDAppClientDelegate>)delegate; 63 - (instancetype)initWithDelegate:(id<ARDAppClientDelegate>)delegate
64 preferVideoCodec:(NSString*)codec;
daniela-webrtc 2017/03/20 13:10:06 NSString* -> NSString *
daniela-webrtc 2017/03/20 13:10:06 I don't think this is needed as early as the init?
64 65
65 // Sets camera constraints. 66 // Sets camera constraints.
66 - (void)setCameraConstraints:(RTCMediaConstraints *)mediaConstraints; 67 - (void)setCameraConstraints:(RTCMediaConstraints *)mediaConstraints;
67 68
68 // Sets maximum bitrate the rtp sender should use. 69 // Sets maximum bitrate the rtp sender should use.
69 - (void)setMaxBitrate:(NSNumber *)maxBitrate; 70 - (void)setMaxBitrate:(NSNumber *)maxBitrate;
70 71
71 // Establishes a connection with the AppRTC servers for the given room id. 72 // Establishes a connection with the AppRTC servers for the given room id.
72 // If |isLoopback| is true, the call will connect to itself. 73 // If |isLoopback| is true, the call will connect to itself.
73 // If |isAudioOnly| is true, video will be disabled for the call. 74 // If |isAudioOnly| is true, video will be disabled for the call.
74 // If |shouldMakeAecDump| is true, an aecdump will be created for the call. 75 // If |shouldMakeAecDump| is true, an aecdump will be created for the call.
75 // If |shouldUseLevelControl| is true, the level controller will be used 76 // If |shouldUseLevelControl| is true, the level controller will be used
76 // in the call. 77 // in the call.
77 - (void)connectToRoomWithId:(NSString *)roomId 78 - (void)connectToRoomWithId:(NSString *)roomId
78 isLoopback:(BOOL)isLoopback 79 isLoopback:(BOOL)isLoopback
79 isAudioOnly:(BOOL)isAudioOnly 80 isAudioOnly:(BOOL)isAudioOnly
80 shouldMakeAecDump:(BOOL)shouldMakeAecDump 81 shouldMakeAecDump:(BOOL)shouldMakeAecDump
81 shouldUseLevelControl:(BOOL)shouldUseLevelControl; 82 shouldUseLevelControl:(BOOL)shouldUseLevelControl;
82 83
83 // Disconnects from the AppRTC servers and any connected clients. 84 // Disconnects from the AppRTC servers and any connected clients.
84 - (void)disconnect; 85 - (void)disconnect;
85 86
86 @end 87 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698