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

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h

Issue 2996643002: BWE allocation strategy
Patch Set: BWE allocation strategy Created 3 years, 4 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 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 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
11 #import <Foundation/Foundation.h> 11 #import <Foundation/Foundation.h>
12 12
13 #import <WebRTC/RTCMacros.h> 13 #import <WebRTC/RTCMacros.h>
14 14
15 @class RTCConfiguration; 15 @class RTCConfiguration;
16 @class RTCDataChannel; 16 @class RTCDataChannel;
17 @class RTCDataChannelConfiguration; 17 @class RTCDataChannelConfiguration;
18 @class RTCIceCandidate; 18 @class RTCIceCandidate;
19 @class RTCMediaConstraints; 19 @class RTCMediaConstraints;
20 @class RTCMediaStream; 20 @class RTCMediaStream;
21 @class RTCMediaStreamTrack; 21 @class RTCMediaStreamTrack;
22 @class RTCPeerConnectionFactory; 22 @class RTCPeerConnectionFactory;
23 @class RTCRtpReceiver; 23 @class RTCRtpReceiver;
24 @class RTCRtpSender; 24 @class RTCRtpSender;
25 @class RTCSessionDescription; 25 @class RTCSessionDescription;
26 @class RTCLegacyStatsReport; 26 @class RTCLegacyStatsReport;
27 @class RTCBitrateAllocationStrategy;
27 28
28 NS_ASSUME_NONNULL_BEGIN 29 NS_ASSUME_NONNULL_BEGIN
29 30
30 extern NSString * const kRTCPeerConnectionErrorDomain; 31 extern NSString * const kRTCPeerConnectionErrorDomain;
31 extern int const kRTCSessionDescriptionErrorCode; 32 extern int const kRTCSessionDescriptionErrorCode;
32 33
33 /** Represents the signaling state of the peer connection. */ 34 /** Represents the signaling state of the peer connection. */
34 typedef NS_ENUM(NSInteger, RTCSignalingState) { 35 typedef NS_ENUM(NSInteger, RTCSignalingState) {
35 RTCSignalingStateStable, 36 RTCSignalingStateStable,
36 RTCSignalingStateHaveLocalOffer, 37 RTCSignalingStateHaveLocalOffer,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 /** Apply the supplied RTCSessionDescription as the remote description. */ 183 /** Apply the supplied RTCSessionDescription as the remote description. */
183 - (void)setRemoteDescription:(RTCSessionDescription *)sdp 184 - (void)setRemoteDescription:(RTCSessionDescription *)sdp
184 completionHandler: 185 completionHandler:
185 (nullable void (^)(NSError * _Nullable error))completionHandler; 186 (nullable void (^)(NSError * _Nullable error))completionHandler;
186 187
187 /** Start or stop recording an Rtc EventLog. */ 188 /** Start or stop recording an Rtc EventLog. */
188 - (BOOL)startRtcEventLogWithFilePath:(NSString *)filePath 189 - (BOOL)startRtcEventLogWithFilePath:(NSString *)filePath
189 maxSizeInBytes:(int64_t)maxSizeInBytes; 190 maxSizeInBytes:(int64_t)maxSizeInBytes;
190 - (void)stopRtcEventLog; 191 - (void)stopRtcEventLog;
191 192
193 - (void)setBitrateAllocationStrategy:(RTCBitrateAllocationStrategy *)bitrateAllo cationStrategy;
194
192 @end 195 @end
193 196
194 @interface RTCPeerConnection (Media) 197 @interface RTCPeerConnection (Media)
195 198
196 /** 199 /**
197 * Create an RTCRtpSender with the specified kind and media stream ID. 200 * Create an RTCRtpSender with the specified kind and media stream ID.
198 * See RTCMediaStreamTrack.h for available kinds. 201 * See RTCMediaStreamTrack.h for available kinds.
199 */ 202 */
200 - (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId; 203 - (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId;
201 204
(...skipping 14 matching lines...) Expand all
216 */ 219 */
217 - (void)statsForTrack: 220 - (void)statsForTrack:
218 (nullable RTCMediaStreamTrack *)mediaStreamTrack 221 (nullable RTCMediaStreamTrack *)mediaStreamTrack
219 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel 222 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel
220 completionHandler: 223 completionHandler:
221 (nullable void (^)(NSArray<RTCLegacyStatsReport *> *stats))completionHandler ; 224 (nullable void (^)(NSArray<RTCLegacyStatsReport *> *stats))completionHandler ;
222 225
223 @end 226 @end
224 227
225 NS_ASSUME_NONNULL_END 228 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698