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 | |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 17 | @class RTC_OBJC_TYPE(RTCPeerConnectionFactory); |
Yura Yaroshevich | 08f14dd | 2018-07-09 11:56:06 +0300 | [diff] [blame] | 18 | |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 19 | @interface RTC_OBJC_TYPE (RTCRtpTransceiverInit) |
| 20 | () |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 21 | |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 22 | @property(nonatomic, readonly) webrtc::RtpTransceiverInit nativeInit; |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 23 | |
| 24 | @end |
| 25 | |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 26 | @interface RTC_OBJC_TYPE (RTCRtpTransceiver) |
| 27 | () |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 28 | |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 29 | @property(nonatomic, |
| 30 | readonly) rtc::scoped_refptr<webrtc::RtpTransceiverInterface> nativeRtpTransceiver; |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 31 | |
| 32 | /** Initialize an RTCRtpTransceiver with a native RtpTransceiverInterface. */ |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 33 | - (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory |
Yura Yaroshevich | 08f14dd | 2018-07-09 11:56:06 +0300 | [diff] [blame] | 34 | nativeRtpTransceiver: |
| 35 | (rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 36 | NS_DESIGNATED_INITIALIZER; |
| 37 | |
| 38 | + (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection: |
| 39 | (RTCRtpTransceiverDirection)direction; |
| 40 | |
| 41 | + (RTCRtpTransceiverDirection)rtpTransceiverDirectionFromNativeDirection: |
| 42 | (webrtc::RtpTransceiverDirection)nativeDirection; |
| 43 | |
| 44 | @end |
| 45 | |
| 46 | NS_ASSUME_NONNULL_END |