blob: 49f61b81d56209f54472678f7c5280415b37a6fb [file] [log] [blame]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001/*
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
18NS_ASSUME_NONNULL_BEGIN
19
Mirko Bonadeie8d57242018-09-17 10:22:56 +020020RTC_OBJC_EXPORT
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020021@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
Mirko Bonadeie8d57242018-09-17 10:22:56 +020043RTC_OBJC_EXPORT
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020044@interface RTCRtpSender : NSObject <RTCRtpSender>
45
46- (instancetype)init NS_UNAVAILABLE;
47
48@end
49
50NS_ASSUME_NONNULL_END