blob: d910c6ceb280442bdec5864ee971a97a38b4628f [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
tkchin9eeb6242016-04-27 01:54:20 -070013#import <WebRTC/RTCMacros.h>
14#import <WebRTC/RTCMediaStreamTrack.h>
15#import <WebRTC/RTCRtpParameters.h>
skvlad79b4b872016-04-08 17:28:55 -070016
17NS_ASSUME_NONNULL_BEGIN
18
tkchin8b577ed2016-04-19 10:04:41 -070019RTC_EXPORT
skvlad79b4b872016-04-08 17:28:55 -070020@protocol RTCRtpSender <NSObject>
21
skvladf3569c82016-04-29 15:30:16 -070022/** A unique identifier for this sender. */
23@property(nonatomic, readonly) NSString *senderId;
24
skvlad79b4b872016-04-08 17:28:55 -070025/** The currently active RTCRtpParameters, as defined in
26 * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters.
27 */
skvladf3569c82016-04-29 15:30:16 -070028@property(nonatomic, copy) RTCRtpParameters *parameters;
skvlad79b4b872016-04-08 17:28:55 -070029
30/** The RTCMediaStreamTrack associated with the sender.
31 * Note: reading this property returns a new instance of
32 * RTCMediaStreamTrack. Use isEqual: instead of == to compare
33 * RTCMediaStreamTrack instances.
34 */
skvladf3569c82016-04-29 15:30:16 -070035@property(nonatomic, copy, nullable) RTCMediaStreamTrack *track;
skvlad79b4b872016-04-08 17:28:55 -070036
37@end
38
tkchin8b577ed2016-04-19 10:04:41 -070039RTC_EXPORT
skvlad79b4b872016-04-08 17:28:55 -070040@interface RTCRtpSender : NSObject <RTCRtpSender>
41
42- (instancetype)init NS_UNAVAILABLE;
43
44@end
45
46NS_ASSUME_NONNULL_END