2018-02-27 15:34:53 -08:00
|
|
|
/*
|
|
|
|
|
* 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
|
|
|
|
|
|
2018-07-09 11:56:06 +03:00
|
|
|
@class RTCPeerConnectionFactory;
|
|
|
|
|
|
2018-02-27 15:34:53 -08:00
|
|
|
@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. */
|
2018-07-09 11:56:06 +03:00
|
|
|
- (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory
|
|
|
|
|
nativeRtpTransceiver:
|
|
|
|
|
(rtc::scoped_refptr<webrtc::RtpTransceiverInterface>)nativeRtpTransceiver
|
2018-02-27 15:34:53 -08:00
|
|
|
NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
|
|
|
|
+ (webrtc::RtpTransceiverDirection)nativeRtpTransceiverDirectionFromDirection:
|
|
|
|
|
(RTCRtpTransceiverDirection)direction;
|
|
|
|
|
|
|
|
|
|
+ (RTCRtpTransceiverDirection)rtpTransceiverDirectionFromNativeDirection:
|
|
|
|
|
(webrtc::RtpTransceiverDirection)nativeDirection;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|