blob: d7f6b585e4e30729c783be5fdc3c6c38ab5c65ab [file] [log] [blame]
Steve Anton8cb344a2018-02-27 15:34:53 -08001/*
2 * Copyright 2018 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
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020011#import "RTCRtpTransceiver.h"
Steve Anton8cb344a2018-02-27 15:34:53 -080012
Steve Anton10542f22019-01-11 09:11:00 -080013#include "api/rtp_transceiver_interface.h"
Steve Anton8cb344a2018-02-27 15:34:53 -080014
15NS_ASSUME_NONNULL_BEGIN
16
Yura Yaroshevich08f14dd2018-07-09 11:56:06 +030017@class RTCPeerConnectionFactory;
18
Steve Anton8cb344a2018-02-27 15:34:53 -080019@interface RTCRtpTransceiverInit ()
20
21@property(nonatomic, readonly) webrtc::RtpTransceiverInit nativeInit;
22
23@end
24
25@interface RTCRtpTransceiver ()
26
27@property(nonatomic, readonly) rtc::scoped_refptr<webrtc::RtpTransceiverInterface>
28 nativeRtpTransceiver;
29
30/** Initialize an RTCRtpTransceiver with a native RtpTransceiverInterface. */
Yura Yaroshevich08f14dd2018-07-09 11:56:06 +030031- (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory
32 nativeRtpTransceiver:
33 (rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver
Steve Anton8cb344a2018-02-27 15:34:53 -080034 NS_DESIGNATED_INITIALIZER;
35
36+ (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection:
37 (RTCRtpTransceiverDirection)direction;
38
39+ (RTCRtpTransceiverDirection)rtpTransceiverDirectionFromNativeDirection:
40 (webrtc::RtpTransceiverDirection)nativeDirection;
41
42@end
43
44NS_ASSUME_NONNULL_END