blob: c7108fa91b4f21f1f1ed6d9b48717b045d0e444e [file] [log] [blame]
skvlad79b4b872016-04-08 17:28:55 -07001/*
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
16NS_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 * Note: reading this property returns a new instance of
27 * RTCMediaStreamTrack. Use isEqual: instead of == to compare
28 * RTCMediaStreamTrack instances.
29 */
30@property(nonatomic, readonly) RTCMediaStreamTrack *track;
31
32/** Set the new RTCRtpParameters to be used by the sender.
33 * Returns YES if the new parameters were applied, NO otherwise.
34 */
35- (BOOL)setParameters:(RTCRtpParameters *)parameters;
36
37@end
38
39@interface RTCRtpSender : NSObject <RTCRtpSender>
40
41- (instancetype)init NS_UNAVAILABLE;
42
43@end
44
45NS_ASSUME_NONNULL_END