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 11 #import "RTCRtpTransceiver.h" 12 13 #include "api/rtp_transceiver_interface.h" 14 15 NS_ASSUME_NONNULL_BEGIN 16 17 @class RTC_OBJC_TYPE(RTCPeerConnectionFactory); 18 19 @interface RTC_OBJC_TYPE (RTCRtpTransceiverInit) 20 () 21 22 @property(nonatomic, readonly) webrtc::RtpTransceiverInit nativeInit; 23 24 @end 25 26 @interface RTC_OBJC_TYPE (RTCRtpTransceiver) 27 () 28 29 @property(nonatomic, 30 readonly) rtc::scoped_refptr<webrtc::RtpTransceiverInterface> nativeRtpTransceiver; 31 32 /** Initialize an RTCRtpTransceiver with a native RtpTransceiverInterface. */ 33 - (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory 34 nativeRtpTransceiver: 35 (rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver 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 47