1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2018 The WebRTC project authors. All Rights Reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #import "RTCRtpTransceiver.h" 12*d9f75844SAndroid Build Coastguard Worker 13*d9f75844SAndroid Build Coastguard Worker #include "api/rtp_transceiver_interface.h" 14*d9f75844SAndroid Build Coastguard Worker 15*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_BEGIN 16*d9f75844SAndroid Build Coastguard Worker 17*d9f75844SAndroid Build Coastguard Worker @class RTC_OBJC_TYPE(RTCPeerConnectionFactory); 18*d9f75844SAndroid Build Coastguard Worker 19*d9f75844SAndroid Build Coastguard Worker @interface RTC_OBJC_TYPE (RTCRtpTransceiverInit) 20*d9f75844SAndroid Build Coastguard Worker () 21*d9f75844SAndroid Build Coastguard Worker 22*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, readonly) webrtc::RtpTransceiverInit nativeInit; 23*d9f75844SAndroid Build Coastguard Worker 24*d9f75844SAndroid Build Coastguard Worker @end 25*d9f75844SAndroid Build Coastguard Worker 26*d9f75844SAndroid Build Coastguard Worker @interface RTC_OBJC_TYPE (RTCRtpTransceiver) 27*d9f75844SAndroid Build Coastguard Worker () 28*d9f75844SAndroid Build Coastguard Worker 29*d9f75844SAndroid Build Coastguard Worker @property(nonatomic, 30*d9f75844SAndroid Build Coastguard Worker readonly) rtc::scoped_refptr<webrtc::RtpTransceiverInterface> nativeRtpTransceiver; 31*d9f75844SAndroid Build Coastguard Worker 32*d9f75844SAndroid Build Coastguard Worker /** Initialize an RTCRtpTransceiver with a native RtpTransceiverInterface. */ 33*d9f75844SAndroid Build Coastguard Worker - (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory 34*d9f75844SAndroid Build Coastguard Worker nativeRtpTransceiver: 35*d9f75844SAndroid Build Coastguard Worker (rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver 36*d9f75844SAndroid Build Coastguard Worker NS_DESIGNATED_INITIALIZER; 37*d9f75844SAndroid Build Coastguard Worker 38*d9f75844SAndroid Build Coastguard Worker + (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection: 39*d9f75844SAndroid Build Coastguard Worker (RTCRtpTransceiverDirection)direction; 40*d9f75844SAndroid Build Coastguard Worker 41*d9f75844SAndroid Build Coastguard Worker + (RTCRtpTransceiverDirection)rtpTransceiverDirectionFromNativeDirection: 42*d9f75844SAndroid Build Coastguard Worker (webrtc::RtpTransceiverDirection)nativeDirection; 43*d9f75844SAndroid Build Coastguard Worker 44*d9f75844SAndroid Build Coastguard Worker @end 45*d9f75844SAndroid Build Coastguard Worker 46*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_END 47