2016-01-26 13:06:42 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-04-27 01:54:20 -07:00
|
|
|
#import "WebRTC/RTCConfiguration.h"
|
2016-01-26 13:06:42 -08:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "api/peerconnectioninterface.h"
|
2016-01-26 13:06:42 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface RTCConfiguration ()
|
|
|
|
|
|
|
|
|
|
+ (webrtc::PeerConnectionInterface::IceTransportsType)
|
|
|
|
|
nativeTransportsTypeForTransportPolicy:(RTCIceTransportPolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (RTCIceTransportPolicy)transportPolicyForTransportsType:
|
|
|
|
|
(webrtc::PeerConnectionInterface::IceTransportsType)nativeType;
|
|
|
|
|
|
|
|
|
|
+ (NSString *)stringForTransportPolicy:(RTCIceTransportPolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (webrtc::PeerConnectionInterface::BundlePolicy)nativeBundlePolicyForPolicy:
|
|
|
|
|
(RTCBundlePolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (RTCBundlePolicy)bundlePolicyForNativePolicy:
|
|
|
|
|
(webrtc::PeerConnectionInterface::BundlePolicy)nativePolicy;
|
|
|
|
|
|
|
|
|
|
+ (NSString *)stringForBundlePolicy:(RTCBundlePolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativeRtcpMuxPolicyForPolicy:
|
|
|
|
|
(RTCRtcpMuxPolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (RTCRtcpMuxPolicy)rtcpMuxPolicyForNativePolicy:
|
|
|
|
|
(webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativePolicy;
|
|
|
|
|
|
|
|
|
|
+ (NSString *)stringForRtcpMuxPolicy:(RTCRtcpMuxPolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (webrtc::PeerConnectionInterface::TcpCandidatePolicy)
|
|
|
|
|
nativeTcpCandidatePolicyForPolicy:(RTCTcpCandidatePolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (RTCTcpCandidatePolicy)tcpCandidatePolicyForNativePolicy:
|
|
|
|
|
(webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativePolicy;
|
|
|
|
|
|
|
|
|
|
+ (NSString *)stringForTcpCandidatePolicy:(RTCTcpCandidatePolicy)policy;
|
|
|
|
|
|
2016-06-03 16:31:32 -07:00
|
|
|
+ (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)
|
|
|
|
|
nativeCandidateNetworkPolicyForPolicy:(RTCCandidateNetworkPolicy)policy;
|
|
|
|
|
|
|
|
|
|
+ (RTCCandidateNetworkPolicy)candidateNetworkPolicyForNativePolicy:
|
|
|
|
|
(webrtc::PeerConnectionInterface::CandidateNetworkPolicy)nativePolicy;
|
|
|
|
|
|
|
|
|
|
+ (NSString *)stringForCandidateNetworkPolicy:(RTCCandidateNetworkPolicy)policy;
|
|
|
|
|
|
2016-06-09 03:18:28 -07:00
|
|
|
+ (rtc::KeyType)nativeEncryptionKeyTypeForKeyType:(RTCEncryptionKeyType)keyType;
|
|
|
|
|
|
2016-05-17 03:28:58 -07:00
|
|
|
/**
|
|
|
|
|
* RTCConfiguration struct representation of this RTCConfiguration. This is
|
|
|
|
|
* needed to pass to the underlying C++ APIs.
|
|
|
|
|
*/
|
2018-01-12 16:16:18 +01:00
|
|
|
- (nullable webrtc::PeerConnectionInterface::RTCConfiguration *)createNativeConfiguration;
|
2016-05-17 03:28:58 -07:00
|
|
|
|
2017-04-03 15:06:37 -07:00
|
|
|
- (instancetype)initWithNativeConfiguration:
|
2017-04-04 14:00:16 -07:00
|
|
|
(const webrtc::PeerConnectionInterface::RTCConfiguration &)config NS_DESIGNATED_INITIALIZER;
|
2017-04-03 15:06:37 -07:00
|
|
|
|
2016-01-26 13:06:42 -08:00
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|