Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 1 | /* |
| 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 Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame] | 11 | #import "RTCRtpTransceiver.h" |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 12 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 13 | #include "api/rtp_transceiver_interface.h" |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 14 | |
| 15 | NS_ASSUME_NONNULL_BEGIN |
| 16 | |
Yura Yaroshevich | 08f14dd | 2018-07-09 11:56:06 +0300 | [diff] [blame] | 17 | @class RTCPeerConnectionFactory; |
| 18 | |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 19 | @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 Yaroshevich | 08f14dd | 2018-07-09 11:56:06 +0300 | [diff] [blame] | 31 | - (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory |
| 32 | nativeRtpTransceiver: |
| 33 | (rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 34 | NS_DESIGNATED_INITIALIZER; |
| 35 | |
| 36 | + (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection: |
| 37 | (RTCRtpTransceiverDirection)direction; |
| 38 | |
| 39 | + (RTCRtpTransceiverDirection)rtpTransceiverDirectionFromNativeDirection: |
| 40 | (webrtc::RtpTransceiverDirection)nativeDirection; |
| 41 | |
| 42 | @end |
| 43 | |
| 44 | NS_ASSUME_NONNULL_END |