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.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-08-30 09:30:29 +02:00
|
|
|
#import "RTCConfiguration.h"
|
2016-01-26 13:06:42 -08:00
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "api/peer_connection_interface.h"
|
2016-01-26 13:06:42 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
2020-05-04 16:14:32 +02:00
|
|
|
@interface RTC_OBJC_TYPE (RTCConfiguration)
|
|
|
|
|
()
|
2016-01-26 13:06:42 -08:00
|
|
|
|
2020-05-04 16:14:32 +02:00
|
|
|
+ (webrtc::PeerConnectionInterface::IceTransportsType)nativeTransportsTypeForTransportPolicy
|
|
|
|
|
: (RTCIceTransportPolicy)policy;
|
2016-01-26 13:06:42 -08:00
|
|
|
|
|
|
|
|
+ (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;
|
|
|
|
|
|
2018-02-27 15:34:53 -08:00
|
|
|
+ (webrtc::SdpSemantics)nativeSdpSemanticsForSdpSemantics:(RTCSdpSemantics)sdpSemantics;
|
|
|
|
|
|
|
|
|
|
+ (RTCSdpSemantics)sdpSemanticsForNativeSdpSemantics:(webrtc::SdpSemantics)sdpSemantics;
|
|
|
|
|
|
|
|
|
|
+ (NSString *)stringForSdpSemantics:(RTCSdpSemantics)sdpSemantics;
|
|
|
|
|
|
2016-05-17 03:28:58 -07:00
|
|
|
/**
|
2020-05-04 16:14:32 +02:00
|
|
|
* RTCConfiguration struct representation of this RTCConfiguration.
|
|
|
|
|
* This is needed to pass to the underlying C++ APIs.
|
2016-05-17 03:28:58 -07:00
|
|
|
*/
|
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
|