blob: f6e91250267a3da247372c0424166e7919d82395 [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
Yura Yaroshevich27676322018-01-02 14:44:35 +030013#import <WebRTC/RTCDtmfSender.h>
tkchin9eeb6242016-04-27 01:54:20 -070014#import <WebRTC/RTCMacros.h>
15#import <WebRTC/RTCMediaStreamTrack.h>
16#import <WebRTC/RTCRtpParameters.h>
skvlad79b4b872016-04-08 17:28:55 -070017
18NS_ASSUME_NONNULL_BEGIN
19
tkchin8b577ed2016-04-19 10:04:41 -070020RTC_EXPORT
skvlad79b4b872016-04-08 17:28:55 -070021@protocol RTCRtpSender <NSObject>
22
skvladf3569c82016-04-29 15:30:16 -070023/** A unique identifier for this sender. */
24@property(nonatomic, readonly) NSString *senderId;
25
skvlad79b4b872016-04-08 17:28:55 -070026/** The currently active RTCRtpParameters, as defined in
27 * https://www.w3.org/TR/webrtc/#idl-def-RTCRtpParameters.
28 */
skvladf3569c82016-04-29 15:30:16 -070029@property(nonatomic, copy) RTCRtpParameters *parameters;
skvlad79b4b872016-04-08 17:28:55 -070030
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 */
skvladf3569c82016-04-29 15:30:16 -070036@property(nonatomic, copy, nullable) RTCMediaStreamTrack *track;
skvlad79b4b872016-04-08 17:28:55 -070037
Yura Yaroshevich27676322018-01-02 14:44:35 +030038/** The RTCDtmfSender accociated with the RTP sender. */
39@property(nonatomic, readonly, nullable) id<RTCDtmfSender> dtmfSender;
40
skvlad79b4b872016-04-08 17:28:55 -070041@end
42
tkchin8b577ed2016-04-19 10:04:41 -070043RTC_EXPORT
skvlad79b4b872016-04-08 17:28:55 -070044@interface RTCRtpSender : NSObject <RTCRtpSender>
45
46- (instancetype)init NS_UNAVAILABLE;
47
48@end
49
50NS_ASSUME_NONNULL_END