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

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

Issue 1917193008: Adding getParameters/setParameters APIs to RtpReceiver. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: objc compile errors Created 4 years, 7 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
« no previous file with comments | « webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h ('k') | webrtc/sdk/sdk.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2016 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 #import <WebRTC/RTCMediaStreamTrack.h> 14 #import <WebRTC/RTCMediaStreamTrack.h>
15 #import <WebRTC/RTCRtpParameters.h> 15 #import <WebRTC/RTCRtpParameters.h>
16 16
17 NS_ASSUME_NONNULL_BEGIN 17 NS_ASSUME_NONNULL_BEGIN
18 18
19 RTC_EXPORT 19 RTC_EXPORT
20 @protocol RTCRtpSender <NSObject> 20 @protocol RTCRtpReceiver <NSObject>
21 21
22 /** A unique identifier for this sender. */ 22 /** A unique identifier for this receiver. */
23 @property(nonatomic, readonly) NSString *senderId; 23 @property(nonatomic, readonly) NSString *receiverId;
24 24
25 /** The currently active RTCRtpParameters, as defined in 25 /** The currently active RTCRtpParameters, as defined in
26 * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters. 26 * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters.
27 *
28 * The WebRTC specification only defines RTCRtpParameters in terms of senders,
29 * but this API also applies them to receivers, similar to ORTC:
30 * http://ortc.org/wp-content/uploads/2016/03/ortc.html#rtcrtpparameters*.
27 */ 31 */
28 @property(nonatomic, copy) RTCRtpParameters *parameters; 32 @property(nonatomic, readonly) RTCRtpParameters *parameters;
29 33
30 /** The RTCMediaStreamTrack associated with the sender. 34 /** The RTCMediaStreamTrack associated with the receiver.
31 * Note: reading this property returns a new instance of 35 * Note: reading this property returns a new instance of
32 * RTCMediaStreamTrack. Use isEqual: instead of == to compare 36 * RTCMediaStreamTrack. Use isEqual: instead of == to compare
33 * RTCMediaStreamTrack instances. 37 * RTCMediaStreamTrack instances.
34 */ 38 */
35 @property(nonatomic, copy, nullable) RTCMediaStreamTrack *track; 39 @property(nonatomic, readonly) RTCMediaStreamTrack *track;
36 40
37 @end 41 @end
38 42
39 RTC_EXPORT 43 RTC_EXPORT
40 @interface RTCRtpSender : NSObject <RTCRtpSender> 44 @interface RTCRtpReceiver : NSObject <RTCRtpReceiver>
41 45
42 - (instancetype)init NS_UNAVAILABLE; 46 - (instancetype)init NS_UNAVAILABLE;
43 47
44 @end 48 @end
45 49
46 NS_ASSUME_NONNULL_END 50 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h ('k') | webrtc/sdk/sdk.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698