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&);
317 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams() = 0;
319 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams() = 0;
325 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
327 ::std::vector<::std::string>
const& a2
330 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
332 ::std::vector<::std::string>
const& a2,
333 ::std::vector<::webrtc::RtpEncodingParameters>
const& a3
338 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
341 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> AddTransceiver(
346 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
347 AddTransceiver(::cricket::MediaType a1) = 0;
349 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
352 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
353 CreateSender(::std::string
const& a1, ::std::string
const& a2) = 0;
355 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders()
const = 0;
357 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers()
const = 0;
359 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers()
const = 0;
361 virtual bool GetStats(
364 ::webrtc::PeerConnectionInterface::StatsOutputLevel a3
369 virtual void GetStats(
374 virtual void GetStats(
379 virtual void ClearStatsCache();
381 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
384 virtual ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
387 virtual ::webrtc::SessionDescriptionInterface
const* local_description()
const = 0;
389 virtual ::webrtc::SessionDescriptionInterface
const* remote_description()
const = 0;
391 virtual ::webrtc::SessionDescriptionInterface
const* current_local_description()
const = 0;
393 virtual ::webrtc::SessionDescriptionInterface
const* current_remote_description()
const = 0;
395 virtual ::webrtc::SessionDescriptionInterface
const* pending_local_description()
const = 0;
397 virtual ::webrtc::SessionDescriptionInterface
const* pending_remote_description()
const = 0;
399 virtual void RestartIce() = 0;
401 virtual void CreateOffer(
406 virtual void CreateAnswer(
411 virtual void SetLocalDescription(
412 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
423 virtual void SetRemoteDescription(
424 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
431 virtual bool ShouldFireNegotiationNeededEvent(uint a1) = 0;
433 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() = 0;
439 virtual void AddIceCandidate(
440 ::std::unique_ptr<::webrtc::IceCandidateInterface> a1,
444 virtual bool RemoveIceCandidates(::std::vector<::cricket::Candidate>
const& a1) = 0;
450 virtual void SetAudioPlayout(
bool a1) = 0;
452 virtual void SetAudioRecording(
bool a1) = 0;
454 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
455 LookupDtlsTransportByMid(::std::string
const& a1) = 0;
457 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport()
const = 0;
459 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() = 0;
461 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() = 0;
463 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() = 0;
465 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() = 0;
467 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() = 0;
469 virtual ::std::optional<bool> can_trickle_ice_candidates() = 0;
473 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1, int64 a2) = 0;
475 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1) = 0;
477 virtual void StopRtcEventLog() = 0;
479 virtual void Close() = 0;
481 virtual ::rtc::Thread* signaling_thread()
const = 0;
489 MCNAPI static ::std::string_view
AsString(::webrtc::PeerConnectionInterface::SignalingState state);
495 MCNAPI ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>