skvlad | 79b4b87 | 2016-04-08 17:28:55 -0700 | [diff] [blame] | 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 | |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 13 | #import <WebRTC/RTCMacros.h> |
| 14 | #import <WebRTC/RTCMediaStreamTrack.h> |
| 15 | #import <WebRTC/RTCRtpParameters.h> |
skvlad | 79b4b87 | 2016-04-08 17:28:55 -0700 | [diff] [blame] | 16 | |
| 17 | NS_ASSUME_NONNULL_BEGIN |
| 18 | |
tkchin | 8b577ed | 2016-04-19 10:04:41 -0700 | [diff] [blame] | 19 | RTC_EXPORT |
skvlad | 79b4b87 | 2016-04-08 17:28:55 -0700 | [diff] [blame] | 20 | @protocol RTCRtpSender <NSObject> |
| 21 | |
skvlad | f3569c8 | 2016-04-29 15:30:16 -0700 | [diff] [blame] | 22 | /** A unique identifier for this sender. */ |
| 23 | @property(nonatomic, readonly) NSString *senderId; |
| 24 | |
skvlad | 79b4b87 | 2016-04-08 17:28:55 -0700 | [diff] [blame] | 25 | /** The currently active RTCRtpParameters, as defined in |
| 26 | * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters. |
| 27 | */ |
skvlad | f3569c8 | 2016-04-29 15:30:16 -0700 | [diff] [blame] | 28 | @property(nonatomic, copy) RTCRtpParameters *parameters; |
skvlad | 79b4b87 | 2016-04-08 17:28:55 -0700 | [diff] [blame] | 29 | |
| 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 | */ |
skvlad | f3569c8 | 2016-04-29 15:30:16 -0700 | [diff] [blame] | 35 | @property(nonatomic, copy, nullable) RTCMediaStreamTrack *track; |
skvlad | 79b4b87 | 2016-04-08 17:28:55 -0700 | [diff] [blame] | 36 | |
| 37 | @end |
| 38 | |
tkchin | 8b577ed | 2016-04-19 10:04:41 -0700 | [diff] [blame] | 39 | RTC_EXPORT |
skvlad | 79b4b87 | 2016-04-08 17:28:55 -0700 | [diff] [blame] | 40 | @interface RTCRtpSender : NSObject <RTCRtpSender> |
| 41 | |
| 42 | - (instancetype)init NS_UNAVAILABLE; |
| 43 | |
| 44 | @end |
| 45 | |
| 46 | NS_ASSUME_NONNULL_END |