OLD | NEW |
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/api/objc/RTCMediaStreamTrack.h" | 13 #import "webrtc/api/objc/RTCMediaStreamTrack.h" |
14 #import "webrtc/api/objc/RTCRtpParameters.h" | 14 #import "webrtc/api/objc/RTCRtpParameters.h" |
| 15 #import "webrtc/base/objc/RTCMacros.h" |
15 | 16 |
16 NS_ASSUME_NONNULL_BEGIN | 17 NS_ASSUME_NONNULL_BEGIN |
17 | 18 |
| 19 RTC_EXPORT |
18 @protocol RTCRtpSender <NSObject> | 20 @protocol RTCRtpSender <NSObject> |
19 | 21 |
20 /** The currently active RTCRtpParameters, as defined in | 22 /** The currently active RTCRtpParameters, as defined in |
21 * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters. | 23 * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters. |
22 */ | 24 */ |
23 @property(nonatomic, readonly) RTCRtpParameters *parameters; | 25 @property(nonatomic, readonly) RTCRtpParameters *parameters; |
24 | 26 |
25 /** The RTCMediaStreamTrack associated with the sender. | 27 /** The RTCMediaStreamTrack associated with the sender. |
26 * Note: reading this property returns a new instance of | 28 * Note: reading this property returns a new instance of |
27 * RTCMediaStreamTrack. Use isEqual: instead of == to compare | 29 * RTCMediaStreamTrack. Use isEqual: instead of == to compare |
28 * RTCMediaStreamTrack instances. | 30 * RTCMediaStreamTrack instances. |
29 */ | 31 */ |
30 @property(nonatomic, readonly) RTCMediaStreamTrack *track; | 32 @property(nonatomic, readonly) RTCMediaStreamTrack *track; |
31 | 33 |
32 /** Set the new RTCRtpParameters to be used by the sender. | 34 /** Set the new RTCRtpParameters to be used by the sender. |
33 * Returns YES if the new parameters were applied, NO otherwise. | 35 * Returns YES if the new parameters were applied, NO otherwise. |
34 */ | 36 */ |
35 - (BOOL)setParameters:(RTCRtpParameters *)parameters; | 37 - (BOOL)setParameters:(RTCRtpParameters *)parameters; |
36 | 38 |
37 @end | 39 @end |
38 | 40 |
| 41 RTC_EXPORT |
39 @interface RTCRtpSender : NSObject <RTCRtpSender> | 42 @interface RTCRtpSender : NSObject <RTCRtpSender> |
40 | 43 |
41 - (instancetype)init NS_UNAVAILABLE; | 44 - (instancetype)init NS_UNAVAILABLE; |
42 | 45 |
43 @end | 46 @end |
44 | 47 |
45 NS_ASSUME_NONNULL_END | 48 NS_ASSUME_NONNULL_END |
OLD | NEW |