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

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

Issue 2996643002: BWE allocation strategy
Patch Set: Comments handling Created 3 years, 3 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 */ 190 */
190 - (BOOL)setBitrateToMin:(NSNumber *_Nullable)minBitrateBps 191 - (BOOL)setBitrateToMin:(NSNumber *_Nullable)minBitrateBps
191 toCurrent:(NSNumber *_Nullable)currentBitrateBps 192 toCurrent:(NSNumber *_Nullable)currentBitrateBps
192 toMax:(NSNumber *_Nullable)maxBitrateBps; 193 toMax:(NSNumber *_Nullable)maxBitrateBps;
193 194
194 /** Start or stop recording an Rtc EventLog. */ 195 /** Start or stop recording an Rtc EventLog. */
195 - (BOOL)startRtcEventLogWithFilePath:(NSString *)filePath 196 - (BOOL)startRtcEventLogWithFilePath:(NSString *)filePath
196 maxSizeInBytes:(int64_t)maxSizeInBytes; 197 maxSizeInBytes:(int64_t)maxSizeInBytes;
197 - (void)stopRtcEventLog; 198 - (void)stopRtcEventLog;
198 199
200 - (void)setBitrateAllocationStrategy:
201 (RTCBitrateAllocationStrategy *_Nullable)bitrateAllocationStrategy;
202
199 @end 203 @end
200 204
201 @interface RTCPeerConnection (Media) 205 @interface RTCPeerConnection (Media)
202 206
203 /** 207 /**
204 * Create an RTCRtpSender with the specified kind and media stream ID. 208 * Create an RTCRtpSender with the specified kind and media stream ID.
205 * See RTCMediaStreamTrack.h for available kinds. 209 * See RTCMediaStreamTrack.h for available kinds.
206 */ 210 */
207 - (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId; 211 - (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId;
208 212
(...skipping 14 matching lines...) Expand all
223 */ 227 */
224 - (void)statsForTrack: 228 - (void)statsForTrack:
225 (nullable RTCMediaStreamTrack *)mediaStreamTrack 229 (nullable RTCMediaStreamTrack *)mediaStreamTrack
226 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel 230 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel
227 completionHandler: 231 completionHandler:
228 (nullable void (^)(NSArray<RTCLegacyStatsReport *> *stats))completionHandler ; 232 (nullable void (^)(NSArray<RTCLegacyStatsReport *> *stats))completionHandler ;
229 233
230 @end 234 @end
231 235
232 NS_ASSUME_NONNULL_END 236 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Headers/WebRTC/RTCBitrateAllocationStrategy.h ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698