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