55 enum class SignalingState :
int {
58 KHaveLocalPrAnswer = 2,
60 KHaveRemotePrAnswer = 4,
64 enum class IceGatheringState :
int {
66 KIceGatheringGathering = 1,
67 KIceGatheringComplete = 2,
70 enum class PeerConnectionState :
int {
79 enum class IceConnectionState :
int {
80 KIceConnectionNew = 0,
81 KIceConnectionChecking = 1,
82 KIceConnectionConnected = 2,
83 KIceConnectionCompleted = 3,
84 KIceConnectionFailed = 4,
85 KIceConnectionDisconnected = 5,
86 KIceConnectionClosed = 6,
87 KIceConnectionMax = 7,
90 enum class TlsCertPolicy :
int {
91 KTlsCertPolicySecure = 0,
92 KTlsCertPolicyInsecureNoCheck = 1,
116 MCAPI ::webrtc::PeerConnectionInterface::IceServer&
139 enum class IceTransportsType :
int {
146 enum class BundlePolicy :
int {
147 KBundlePolicyBalanced = 0,
148 KBundlePolicyMaxBundle = 1,
149 KBundlePolicyMaxCompat = 2,
152 enum class RtcpMuxPolicy :
int {
153 KRtcpMuxPolicyNegotiate = 0,
154 KRtcpMuxPolicyRequire = 1,
157 enum class TcpCandidatePolicy :
int {
158 KTcpCandidatePolicyEnabled = 0,
159 KTcpCandidatePolicyDisabled = 1,
162 enum class CandidateNetworkPolicy :
int {
163 KCandidateNetworkPolicyAll = 0,
164 KCandidateNetworkPolicyLowCost = 1,
167 enum class ContinualGatheringPolicy :
int {
188 enum class RTCConfigurationType :
int {
256 MCAPI ::webrtc::PeerConnectionInterface::RTCConfiguration&
300 enum class StatsOutputLevel :
int {
301 KStatsOutputLevelStandard = 0,
302 KStatsOutputLevelDebug = 1,
309 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams() = 0;
312 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams() = 0;
321 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>>
325 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>>
332 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
336 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
340 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
341 AddTransceiver(::cricket::MediaType) = 0;
344 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
348 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
349 CreateSender(::std::string
const&, ::std::string
const&) = 0;
352 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders()
const = 0;
355 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers()
const = 0;
358 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers()
const = 0;
361 virtual bool GetStats(
364 ::webrtc::PeerConnectionInterface::StatsOutputLevel
379 virtual void ClearStatsCache();
382 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
386 virtual ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
390 virtual ::webrtc::SessionDescriptionInterface
const* local_description()
const = 0;
393 virtual ::webrtc::SessionDescriptionInterface
const* remote_description()
const = 0;
396 virtual ::webrtc::SessionDescriptionInterface
const* current_local_description()
const = 0;
399 virtual ::webrtc::SessionDescriptionInterface
const* current_remote_description()
const = 0;
402 virtual ::webrtc::SessionDescriptionInterface
const* pending_local_description()
const = 0;
405 virtual ::webrtc::SessionDescriptionInterface
const* pending_remote_description()
const = 0;
408 virtual void RestartIce() = 0;
440 virtual bool ShouldFireNegotiationNeededEvent(uint) = 0;
443 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() = 0;
453 AddIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface>, ::std::function<
void(
::webrtc::RTCError)>);
456 virtual bool RemoveIceCandidates(::std::vector<::cricket::Candidate>
const&) = 0;
465 virtual void SetAudioPlayout(
bool) = 0;
468 virtual void SetAudioRecording(
bool) = 0;
471 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
472 LookupDtlsTransportByMid(::std::string
const&) = 0;
475 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport()
const = 0;
478 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() = 0;
481 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() = 0;
484 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() = 0;
487 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() = 0;
490 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() = 0;
493 virtual ::std::optional<bool> can_trickle_ice_candidates() = 0;
499 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput>, int64) = 0;
502 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput>) = 0;
505 virtual void StopRtcEventLog() = 0;
508 virtual void Close() = 0;
511 virtual ::rtc::Thread* signaling_thread()
const = 0;
520 MCAPI static ::std::string_view AsString(::webrtc::PeerConnectionInterface::SignalingState);