57 enum class BundlePolicy :
int {
58 KBundlePolicyBalanced = 0,
59 KBundlePolicyMaxBundle = 1,
60 KBundlePolicyMaxCompat = 2,
63 enum class CandidateNetworkPolicy :
int {
64 KCandidateNetworkPolicyAll = 0,
65 KCandidateNetworkPolicyLowCost = 1,
68 enum class ContinualGatheringPolicy :
int {
73 enum class IceConnectionState :
int {
74 KIceConnectionNew = 0,
75 KIceConnectionChecking = 1,
76 KIceConnectionConnected = 2,
77 KIceConnectionCompleted = 3,
78 KIceConnectionFailed = 4,
79 KIceConnectionDisconnected = 5,
80 KIceConnectionClosed = 6,
81 KIceConnectionMax = 7,
84 enum class IceGatheringState :
int {
86 KIceGatheringGathering = 1,
87 KIceGatheringComplete = 2,
90 enum class IceTransportsType :
int {
97 enum class PeerConnectionState :
int {
106 enum class RTCConfigurationType :
int {
111 enum class RtcpMuxPolicy :
int {
112 KRtcpMuxPolicyNegotiate = 0,
113 KRtcpMuxPolicyRequire = 1,
116 enum class SignalingState :
int {
119 KHaveLocalPrAnswer = 2,
120 KHaveRemoteOffer = 3,
121 KHaveRemotePrAnswer = 4,
125 enum class StatsOutputLevel :
int {
126 KStatsOutputLevelStandard = 0,
127 KStatsOutputLevelDebug = 1,
130 enum class TcpCandidatePolicy :
int {
131 KTcpCandidatePolicyEnabled = 0,
132 KTcpCandidatePolicyDisabled = 1,
135 enum class TlsCertPolicy :
int {
136 KTlsCertPolicySecure = 0,
137 KTlsCertPolicyInsecureNoCheck = 1,
161 MCNAPI ::webrtc::PeerConnectionInterface::IceServer&
184 struct PortAllocatorConfig {
195 PortAllocatorConfig& operator=(PortAllocatorConfig
const&);
196 PortAllocatorConfig(PortAllocatorConfig
const&);
197 PortAllocatorConfig();
261 MCNAPI ::webrtc::PeerConnectionInterface::RTCConfiguration&
284 struct RTCOfferAnswerOptions {
300 RTCOfferAnswerOptions& operator=(RTCOfferAnswerOptions
const&);
301 RTCOfferAnswerOptions(RTCOfferAnswerOptions
const&);
302 RTCOfferAnswerOptions();
308 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams() = 0;
310 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams() = 0;
316 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
318 ::std::vector<::std::string>
const& a2
321 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
323 ::std::vector<::std::string>
const& a2,
324 ::std::vector<::webrtc::RtpEncodingParameters>
const& a3
329 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
332 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> AddTransceiver(
337 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
338 AddTransceiver(::webrtc::MediaType a1) = 0;
340 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
343 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
344 CreateSender(::std::string
const& a1, ::std::string
const& a2) = 0;
346 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders()
const = 0;
348 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers()
const = 0;
350 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers()
const = 0;
352 virtual bool GetStats(
355 ::webrtc::PeerConnectionInterface::StatsOutputLevel a3
360 virtual void GetStats(
365 virtual void GetStats(
370 virtual void ClearStatsCache();
372 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
375 virtual ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
378 virtual ::webrtc::SessionDescriptionInterface
const* local_description()
const = 0;
380 virtual ::webrtc::SessionDescriptionInterface
const* remote_description()
const = 0;
382 virtual ::webrtc::SessionDescriptionInterface
const* current_local_description()
const = 0;
384 virtual ::webrtc::SessionDescriptionInterface
const* current_remote_description()
const = 0;
386 virtual ::webrtc::SessionDescriptionInterface
const* pending_local_description()
const = 0;
388 virtual ::webrtc::SessionDescriptionInterface
const* pending_remote_description()
const = 0;
390 virtual void RestartIce() = 0;
392 virtual void CreateOffer(
397 virtual void CreateAnswer(
402 virtual void SetLocalDescription(
403 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
414 virtual void SetRemoteDescription(
415 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
422 virtual bool ShouldFireNegotiationNeededEvent(uint a1) = 0;
424 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() = 0;
431 AddIceCandidate(::std::unique_ptr<::webrtc::IceCandidate> a1, ::std::function<
void(
::webrtc::RTCError)> a2);
435 virtual bool RemoveIceCandidates(::std::vector<::webrtc::Candidate>
const& a1);
441 virtual void SetAudioPlayout(
bool a1) = 0;
443 virtual void SetAudioRecording(
bool a1) = 0;
445 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
446 LookupDtlsTransportByMid(::std::string
const& a1) = 0;
448 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport()
const = 0;
450 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() = 0;
452 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() = 0;
454 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() = 0;
456 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() = 0;
458 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() = 0;
460 virtual ::std::optional<bool> can_trickle_ice_candidates() = 0;
464 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1, int64 a2) = 0;
466 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1) = 0;
468 virtual void StopRtcEventLog() = 0;
470 virtual void SetDataChannelEventObserver(::std::unique_ptr<::webrtc::DataChannelEventObserverInterface> a1) = 0;
472 virtual void Close() = 0;
474 virtual ::webrtc::Thread* signaling_thread()
const = 0;
476 virtual ::webrtc::NetworkControllerInterface* GetNetworkController() = 0;
484 MCNAPI static ::std::string_view
AsString(::webrtc::PeerConnectionInterface::SignalingState state);
490 MCNAPI ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>