Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [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 | |
| 13 | #import "RTCDtmfSender.h" |
| 14 | #import "RTCMacros.h" |
| 15 | #import "RTCMediaStreamTrack.h" |
| 16 | #import "RTCRtpParameters.h" |
| 17 | |
| 18 | NS_ASSUME_NONNULL_BEGIN |
| 19 | |
| 20 | RTC_EXPORT |
| 21 | @protocol RTCRtpSender <NSObject> |
| 22 | |
| 23 | /** A unique identifier for this sender. */ |
| 24 | @property(nonatomic, readonly) NSString *senderId; |
| 25 | |
| 26 | /** The currently active RTCRtpParameters, as defined in |
| 27 | * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters. |
| 28 | */ |
| 29 | @property(nonatomic, copy) RTCRtpParameters *parameters; |
| 30 | |
| 31 | /** The RTCMediaStreamTrack associated with the sender. |
| 32 | * Note: reading this property returns a new instance of |
| 33 | * RTCMediaStreamTrack. Use isEqual: instead of == to compare |
| 34 | * RTCMediaStreamTrack instances. |
| 35 | */ |
| 36 | @property(nonatomic, copy, nullable) RTCMediaStreamTrack *track; |
| 37 | |
| 38 | /** The RTCDtmfSender accociated with the RTP sender. */ |
| 39 | @property(nonatomic, readonly, nullable) id<RTCDtmfSender> dtmfSender; |
| 40 | |
| 41 | @end |
| 42 | |
| 43 | RTC_EXPORT |
| 44 | @interface RTCRtpSender : NSObject <RTCRtpSender> |
| 45 | |
| 46 | - (instancetype)init NS_UNAVAILABLE; |
| 47 | |
| 48 | @end |
| 49 | |
| 50 | NS_ASSUME_NONNULL_END |