55 enum class BundlePolicy :
int {
56 KBundlePolicyBalanced = 0,
57 KBundlePolicyMaxBundle = 1,
58 KBundlePolicyMaxCompat = 2,
61 enum class CandidateNetworkPolicy :
int {
62 KCandidateNetworkPolicyAll = 0,
63 KCandidateNetworkPolicyLowCost = 1,
66 enum class ContinualGatheringPolicy :
int {
71 enum class IceConnectionState :
int {
72 KIceConnectionNew = 0,
73 KIceConnectionChecking = 1,
74 KIceConnectionConnected = 2,
75 KIceConnectionCompleted = 3,
76 KIceConnectionFailed = 4,
77 KIceConnectionDisconnected = 5,
78 KIceConnectionClosed = 6,
79 KIceConnectionMax = 7,
82 enum class IceGatheringState :
int {
84 KIceGatheringGathering = 1,
85 KIceGatheringComplete = 2,
88 enum class IceTransportsType :
int {
95 enum class PeerConnectionState :
int {
104 enum class RTCConfigurationType :
int {
109 enum class RtcpMuxPolicy :
int {
110 KRtcpMuxPolicyNegotiate = 0,
111 KRtcpMuxPolicyRequire = 1,
114 enum class SignalingState :
int {
117 KHaveLocalPrAnswer = 2,
118 KHaveRemoteOffer = 3,
119 KHaveRemotePrAnswer = 4,
123 enum class StatsOutputLevel :
int {
124 KStatsOutputLevelStandard = 0,
125 KStatsOutputLevelDebug = 1,
128 enum class TcpCandidatePolicy :
int {
129 KTcpCandidatePolicyEnabled = 0,
130 KTcpCandidatePolicyDisabled = 1,
133 enum class TlsCertPolicy :
int {
134 KTlsCertPolicySecure = 0,
135 KTlsCertPolicyInsecureNoCheck = 1,
159 MCNAPI ::webrtc::PeerConnectionInterface::IceServer&
182 struct PortAllocatorConfig {
193 PortAllocatorConfig& operator=(PortAllocatorConfig
const&);
194 PortAllocatorConfig(PortAllocatorConfig
const&);
195 PortAllocatorConfig();
259 MCNAPI ::webrtc::PeerConnectionInterface::RTCConfiguration&
282 struct RTCOfferAnswerOptions {
298 RTCOfferAnswerOptions& operator=(RTCOfferAnswerOptions
const&);
299 RTCOfferAnswerOptions(RTCOfferAnswerOptions
const&);
300 RTCOfferAnswerOptions();
306 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams() = 0;
308 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams() = 0;
314 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
316 ::std::vector<::std::string>
const& a2
319 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
321 ::std::vector<::std::string>
const& a2,
322 ::std::vector<::webrtc::RtpEncodingParameters>
const& a3
327 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
330 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> AddTransceiver(
335 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
336 AddTransceiver(::cricket::MediaType a1) = 0;
338 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
341 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
342 CreateSender(::std::string
const& a1, ::std::string
const& a2) = 0;
344 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders()
const = 0;
346 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers()
const = 0;
348 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers()
const = 0;
350 virtual bool GetStats(
353 ::webrtc::PeerConnectionInterface::StatsOutputLevel a3
358 virtual void GetStats(
363 virtual void GetStats(
368 virtual void ClearStatsCache();
370 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
373 virtual ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
376 virtual ::webrtc::SessionDescriptionInterface
const* local_description()
const = 0;
378 virtual ::webrtc::SessionDescriptionInterface
const* remote_description()
const = 0;
380 virtual ::webrtc::SessionDescriptionInterface
const* current_local_description()
const = 0;
382 virtual ::webrtc::SessionDescriptionInterface
const* current_remote_description()
const = 0;
384 virtual ::webrtc::SessionDescriptionInterface
const* pending_local_description()
const = 0;
386 virtual ::webrtc::SessionDescriptionInterface
const* pending_remote_description()
const = 0;
388 virtual void RestartIce() = 0;
390 virtual void CreateOffer(
395 virtual void CreateAnswer(
400 virtual void SetLocalDescription(
401 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
412 virtual void SetRemoteDescription(
413 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
420 virtual bool ShouldFireNegotiationNeededEvent(uint a1) = 0;
422 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() = 0;
428 virtual void AddIceCandidate(
429 ::std::unique_ptr<::webrtc::IceCandidateInterface> a1,
433 virtual bool RemoveIceCandidates(::std::vector<::cricket::Candidate>
const& a1) = 0;
439 virtual void SetAudioPlayout(
bool a1) = 0;
441 virtual void SetAudioRecording(
bool a1) = 0;
443 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
444 LookupDtlsTransportByMid(::std::string
const& a1) = 0;
446 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport()
const = 0;
448 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() = 0;
450 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() = 0;
452 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() = 0;
454 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() = 0;
456 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() = 0;
458 virtual ::std::optional<bool> can_trickle_ice_candidates() = 0;
462 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1, int64 a2) = 0;
464 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1) = 0;
466 virtual void StopRtcEventLog() = 0;
468 virtual void Close() = 0;
470 virtual ::rtc::Thread* signaling_thread()
const = 0;
478 MCNAPI static ::std::string_view
AsString(::webrtc::PeerConnectionInterface::SignalingState state);
484 MCNAPI ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>