hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 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 | |
Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame] | 11 | #import "RTCConfiguration.h" |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 12 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 13 | #include "api/peer_connection_interface.h" |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 14 | |
| 15 | NS_ASSUME_NONNULL_BEGIN |
| 16 | |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 17 | @interface RTC_OBJC_TYPE (RTCConfiguration) |
| 18 | () |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 19 | |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 20 | + (webrtc::PeerConnectionInterface::IceTransportsType)nativeTransportsTypeForTransportPolicy |
| 21 | : (RTCIceTransportPolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 22 | |
| 23 | + (RTCIceTransportPolicy)transportPolicyForTransportsType: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 24 | (webrtc::PeerConnectionInterface::IceTransportsType)nativeType; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 25 | |
| 26 | + (NSString *)stringForTransportPolicy:(RTCIceTransportPolicy)policy; |
| 27 | |
| 28 | + (webrtc::PeerConnectionInterface::BundlePolicy)nativeBundlePolicyForPolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 29 | (RTCBundlePolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 30 | |
| 31 | + (RTCBundlePolicy)bundlePolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 32 | (webrtc::PeerConnectionInterface::BundlePolicy)nativePolicy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 33 | |
| 34 | + (NSString *)stringForBundlePolicy:(RTCBundlePolicy)policy; |
| 35 | |
| 36 | + (webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativeRtcpMuxPolicyForPolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 37 | (RTCRtcpMuxPolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 38 | |
| 39 | + (RTCRtcpMuxPolicy)rtcpMuxPolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 40 | (webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativePolicy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 41 | |
| 42 | + (NSString *)stringForRtcpMuxPolicy:(RTCRtcpMuxPolicy)policy; |
| 43 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 44 | + (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativeTcpCandidatePolicyForPolicy: |
| 45 | (RTCTcpCandidatePolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 46 | |
| 47 | + (RTCTcpCandidatePolicy)tcpCandidatePolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 48 | (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativePolicy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 49 | |
| 50 | + (NSString *)stringForTcpCandidatePolicy:(RTCTcpCandidatePolicy)policy; |
| 51 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 52 | + (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)nativeCandidateNetworkPolicyForPolicy: |
| 53 | (RTCCandidateNetworkPolicy)policy; |
Honghai Zhang | 46007ae | 2016-06-03 16:31:32 -0700 | [diff] [blame] | 54 | |
| 55 | + (RTCCandidateNetworkPolicy)candidateNetworkPolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 56 | (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)nativePolicy; |
Honghai Zhang | 46007ae | 2016-06-03 16:31:32 -0700 | [diff] [blame] | 57 | |
| 58 | + (NSString *)stringForCandidateNetworkPolicy:(RTCCandidateNetworkPolicy)policy; |
| 59 | |
hbos | f9da44d | 2016-06-09 03:18:28 -0700 | [diff] [blame] | 60 | + (rtc::KeyType)nativeEncryptionKeyTypeForKeyType:(RTCEncryptionKeyType)keyType; |
| 61 | |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 62 | + (webrtc::SdpSemantics)nativeSdpSemanticsForSdpSemantics:(RTCSdpSemantics)sdpSemantics; |
| 63 | |
| 64 | + (RTCSdpSemantics)sdpSemanticsForNativeSdpSemantics:(webrtc::SdpSemantics)sdpSemantics; |
| 65 | |
| 66 | + (NSString *)stringForSdpSemantics:(RTCSdpSemantics)sdpSemantics; |
| 67 | |
hbos | a73ca56 | 2016-05-17 03:28:58 -0700 | [diff] [blame] | 68 | /** |
Mirko Bonadei | a81e9c8 | 2020-05-04 16:14:32 +0200 | [diff] [blame] | 69 | * RTCConfiguration struct representation of this RTCConfiguration. |
| 70 | * This is needed to pass to the underlying C++ APIs. |
hbos | a73ca56 | 2016-05-17 03:28:58 -0700 | [diff] [blame] | 71 | */ |
Peter Hanspers | d9b64cd | 2018-01-12 16:16:18 +0100 | [diff] [blame] | 72 | - (nullable webrtc::PeerConnectionInterface::RTCConfiguration *)createNativeConfiguration; |
hbos | a73ca56 | 2016-05-17 03:28:58 -0700 | [diff] [blame] | 73 | |
jtteh | 4eeb537 | 2017-04-03 15:06:37 -0700 | [diff] [blame] | 74 | - (instancetype)initWithNativeConfiguration: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 75 | (const webrtc::PeerConnectionInterface::RTCConfiguration &)config NS_DESIGNATED_INITIALIZER; |
jtteh | 4eeb537 | 2017-04-03 15:06:37 -0700 | [diff] [blame] | 76 | |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 77 | @end |
| 78 | |
| 79 | NS_ASSUME_NONNULL_END |