42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
|
|
/*
|
||
|
|
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
|
||
|
|
*
|
||
|
|
* Use of this source code is governed by a BSD-style license
|
||
|
|
* that can be found in the LICENSE file in the root of the source
|
||
|
|
* tree. An additional intellectual property rights grant can be found
|
||
|
|
* in the file PATENTS. All contributing project authors may
|
||
|
|
* be found in the AUTHORS file in the root of the source tree.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#import "WebRTC/RTCRtpTransceiver.h"
|
||
|
|
|
||
|
|
#include "api/rtptransceiverinterface.h"
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
|
||
|
|
@interface RTCRtpTransceiverInit ()
|
||
|
|
|
||
|
|
@property(nonatomic, readonly) webrtc::RtpTransceiverInit nativeInit;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
@interface RTCRtpTransceiver ()
|
||
|
|
|
||
|
|
@property(nonatomic, readonly) rtc::scoped_refptr<webrtc::RtpTransceiverInterface>
|
||
|
|
nativeRtpTransceiver;
|
||
|
|
|
||
|
|
/** Initialize an RTCRtpTransceiver with a native RtpTransceiverInterface. */
|
||
|
|
- (instancetype)initWithNativeRtpTransceiver:
|
||
|
|
(rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver
|
||
|
|
NS_DESIGNATED_INITIALIZER;
|
||
|
|
|
||
|
|
+ (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection:
|
||
|
|
(RTCRtpTransceiverDirection)direction;
|
||
|
|
|
||
|
|
+ (RTCRtpTransceiverDirection)rtpTransceiverDirectionFromNativeDirection:
|
||
|
|
(webrtc::RtpTransceiverDirection)nativeDirection;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_END
|