| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #import <Foundation/Foundation.h> | |
| 12 | |
| 13 #import "webrtc/api/objc/RTCMediaStreamTrack.h" | |
| 14 #import "webrtc/api/objc/RTCRtpParameters.h" | |
| 15 #import "webrtc/base/objc/RTCMacros.h" | |
| 16 | |
| 17 NS_ASSUME_NONNULL_BEGIN | |
| 18 | |
| 19 RTC_EXPORT | |
| 20 @protocol RTCRtpSender <NSObject> | |
| 21 | |
| 22 /** The currently active RTCRtpParameters, as defined in | |
| 23 * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters. | |
| 24 */ | |
| 25 @property(nonatomic, readonly) RTCRtpParameters *parameters; | |
| 26 | |
| 27 /** The RTCMediaStreamTrack associated with the sender. | |
| 28 * Note: reading this property returns a new instance of | |
| 29 * RTCMediaStreamTrack. Use isEqual: instead of == to compare | |
| 30 * RTCMediaStreamTrack instances. | |
| 31 */ | |
| 32 @property(nonatomic, readonly) RTCMediaStreamTrack *track; | |
| 33 | |
| 34 /** Set the new RTCRtpParameters to be used by the sender. | |
| 35 * Returns YES if the new parameters were applied, NO otherwise. | |
| 36 */ | |
| 37 - (BOOL)setParameters:(RTCRtpParameters *)parameters; | |
| 38 | |
| 39 @end | |
| 40 | |
| 41 RTC_EXPORT | |
| 42 @interface RTCRtpSender : NSObject <RTCRtpSender> | |
| 43 | |
| 44 - (instancetype)init NS_UNAVAILABLE; | |
| 45 | |
| 46 @end | |
| 47 | |
| 48 NS_ASSUME_NONNULL_END | |
| OLD | NEW |