LeviLamina
Loading...
Searching...
No Matches
PeerConnection.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/IceConnectionState.h"
7#include "mc/external/cricket/IceGatheringState.h"
8#include "mc/external/cricket/MediaType.h"
9#include "mc/external/rtc/SSLHandshakeError.h"
10#include "mc/external/rtc/SSLRole.h"
11#include "mc/external/webrtc/AudioDeviceModule.h"
12#include "mc/external/webrtc/Call.h"
13#include "mc/external/webrtc/DataChannelInterface.h"
14#include "mc/external/webrtc/JsepTransportController.h"
15#include "mc/external/webrtc/PeerConnectionFactoryInterface.h"
16#include "mc/external/webrtc/PeerConnectionInterface.h"
17#include "mc/external/webrtc/PeerConnectionInternal.h"
18#include "mc/external/webrtc/PortPrunePolicy.h"
19#include "mc/external/webrtc/RTCErrorOr.h"
20#include "mc/external/webrtc/RtpTransceiverProxyWithInternal.h"
21#include "mc/external/webrtc/UsageEvent.h"
22#include "mc/external/webrtc/scoped_refptr.h"
23
24// auto generated forward declare list
25// clang-format off
26namespace cricket { class Candidate; }
27namespace cricket { class CandidateStats; }
28namespace cricket { class ContentGroup; }
29namespace cricket { class PortAllocator; }
30namespace cricket { class SessionDescription; }
31namespace cricket { struct CandidatePairChangeEvent; }
32namespace cricket { struct IceCandidateErrorEvent; }
33namespace cricket { struct RelayServerConfig; }
34namespace cricket { struct TransportStats; }
35namespace rtc { class CopyOnWriteBuffer; }
36namespace rtc { class RTCCertificate; }
37namespace rtc { class SSLCertChain; }
38namespace rtc { class SocketAddress; }
39namespace rtc { class Thread; }
40namespace webrtc { class Call; }
41namespace webrtc { class ConnectionContext; }
42namespace webrtc { class CreateSessionDescriptionObserver; }
43namespace webrtc { class DataChannelController; }
44namespace webrtc { class DataChannelInterface; }
45namespace webrtc { class DataChannelTransportInterface; }
46namespace webrtc { class DtlsTransport; }
47namespace webrtc { class DtlsTransportInterface; }
48namespace webrtc { class Environment; }
49namespace webrtc { class FieldTrialsView; }
50namespace webrtc { class IceCandidateInterface; }
51namespace webrtc { class JsepTransportController; }
52namespace webrtc { class LegacyStatsCollector; }
53namespace webrtc { class MediaStreamInterface; }
54namespace webrtc { class MediaStreamTrackInterface; }
55namespace webrtc { class PeerConnectionMessageHandler; }
56namespace webrtc { class PeerConnectionObserver; }
57namespace webrtc { class RTCError; }
58namespace webrtc { class RTCStatsCollectorCallback; }
59namespace webrtc { class Resource; }
60namespace webrtc { class RtcEventLogOutput; }
61namespace webrtc { class RtpPacketReceived; }
62namespace webrtc { class RtpReceiverInterface; }
63namespace webrtc { class RtpSenderInterface; }
64namespace webrtc { class RtpTransceiver; }
65namespace webrtc { class RtpTransceiverInterface; }
66namespace webrtc { class RtpTransmissionManager; }
67namespace webrtc { class RtpTransportInternal; }
68namespace webrtc { class SctpTransportInterface; }
69namespace webrtc { class SessionDescriptionInterface; }
70namespace webrtc { class SetLocalDescriptionObserverInterface; }
71namespace webrtc { class SetRemoteDescriptionObserverInterface; }
72namespace webrtc { class SetSessionDescriptionObserver; }
73namespace webrtc { class StatsObserver; }
74namespace webrtc { class StreamCollectionInterface; }
75namespace webrtc { class TurnCustomizer; }
76namespace webrtc { struct BandwidthEstimationSettings; }
77namespace webrtc { struct BitrateSettings; }
78namespace webrtc { struct CryptoOptions; }
79namespace webrtc { struct DataChannelInit; }
80namespace webrtc { struct DataChannelStats; }
81namespace webrtc { struct PeerConnectionDependencies; }
82namespace webrtc { struct RtpEncodingParameters; }
83namespace webrtc { struct RtpTransceiverInit; }
84// clang-format on
85
86namespace webrtc {
87
89public:
90 // PeerConnection inner types declare
91 // clang-format off
93 // clang-format on
94
95 // PeerConnection inner types define
97 public:
98 // member variables
99 // NOLINTBEGIN
101 // NOLINTEND
102
103 public:
104 // prevent constructor by default
108 };
109
110public:
111 // member variables
112 // NOLINTBEGIN
149 // NOLINTEND
150
151public:
152 // prevent constructor by default
153 PeerConnection& operator=(PeerConnection const&);
156
157public:
158 // virtual functions
159 // NOLINTBEGIN
160 // vIndex: 3
161 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams() /*override*/;
162
163 // vIndex: 4
164 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams() /*override*/;
165
166 // vIndex: 5
167 virtual bool AddStream(::webrtc::MediaStreamInterface* local_stream) /*override*/;
168
169 // vIndex: 6
170 virtual void RemoveStream(::webrtc::MediaStreamInterface* remove_stream) /*override*/;
171
172 // vIndex: 8
173 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
175 ::std::vector<::std::string> const& stream_ids
176 ) /*override*/;
177
178 // vIndex: 7
179 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
181 ::std::vector<::std::string> const& stream_ids,
182 ::std::vector<::webrtc::RtpEncodingParameters> const& init_send_encodings
183 ) /*override*/;
184
185 // vIndex: 9
186 virtual ::webrtc::RTCError
187 RemoveTrackOrError(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface> sender) /*override*/;
188
189 // vIndex: 13
190 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
191 AddTransceiver(::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface> track) /*override*/;
192
193 // vIndex: 12
194 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> AddTransceiver(
197 ) /*override*/;
198
199 // vIndex: 11
200 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
201 AddTransceiver(::cricket::MediaType media_type) /*override*/;
202
203 // vIndex: 10
204 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
205 AddTransceiver(::cricket::MediaType media_type, ::webrtc::RtpTransceiverInit const& init) /*override*/;
206
207 // vIndex: 25
208 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> AddTransceiver(
209 ::cricket::MediaType media_type,
212 bool update_negotiation_needed
213 ) /*override*/;
214
215 // vIndex: 14
216 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
217 CreateSender(::std::string const& kind, ::std::string const& stream_id) /*override*/;
218
219 // vIndex: 15
220 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders() const /*override*/;
221
222 // vIndex: 16
223 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers() const /*override*/;
224
225 // vIndex: 17
226 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers() const
227 /*override*/;
228
229 // vIndex: 23
230 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
231 CreateDataChannelOrError(::std::string const& label, ::webrtc::DataChannelInit const* config) /*override*/;
232
233 // vIndex: 21
234 virtual bool GetStats(
235 ::webrtc::StatsObserver* observer,
236 ::webrtc::MediaStreamTrackInterface* track,
237 ::webrtc::PeerConnectionInterface::StatsOutputLevel level
238 ) /*override*/;
239
240 // vIndex: 20
241 virtual void GetStats(::webrtc::RTCStatsCollectorCallback* callback) /*override*/;
242
243 // vIndex: 19
244 virtual void GetStats(
245 ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface> selector,
246 ::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback> callback
247 ) /*override*/;
248
249 // vIndex: 18
250 virtual void GetStats(
251 ::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface> selector,
252 ::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback> callback
253 ) /*override*/;
254
255 // vIndex: 22
256 virtual void ClearStatsCache() /*override*/;
257
258 // vIndex: 52
259 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() /*override*/;
260
261 // vIndex: 53
262 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() /*override*/;
263
264 // vIndex: 19
265 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state_internal() /*override*/;
266
267 // vIndex: 54
268 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() /*override*/;
269
270 // vIndex: 55
271 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() /*override*/;
272
273 // vIndex: 56
274 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() /*override*/;
275
276 // vIndex: 57
277 virtual ::std::optional<bool> can_trickle_ice_candidates() /*override*/;
278
279 // vIndex: 25
280 virtual ::webrtc::SessionDescriptionInterface const* local_description() const /*override*/;
281
282 // vIndex: 26
283 virtual ::webrtc::SessionDescriptionInterface const* remote_description() const /*override*/;
284
285 // vIndex: 27
286 virtual ::webrtc::SessionDescriptionInterface const* current_local_description() const /*override*/;
287
288 // vIndex: 28
289 virtual ::webrtc::SessionDescriptionInterface const* current_remote_description() const /*override*/;
290
291 // vIndex: 29
292 virtual ::webrtc::SessionDescriptionInterface const* pending_local_description() const /*override*/;
293
294 // vIndex: 30
295 virtual ::webrtc::SessionDescriptionInterface const* pending_remote_description() const /*override*/;
296
297 // vIndex: 31
298 virtual void RestartIce() /*override*/;
299
300 // vIndex: 32
301 virtual void CreateOffer(
302 ::webrtc::CreateSessionDescriptionObserver* observer,
303 ::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions const& options
304 ) /*override*/;
305
306 // vIndex: 33
307 virtual void CreateAnswer(
308 ::webrtc::CreateSessionDescriptionObserver* observer,
309 ::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions const& options
310 ) /*override*/;
311
312 // vIndex: 37
313 virtual void SetLocalDescription(
314 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> desc,
315 ::webrtc::scoped_refptr<::webrtc::SetLocalDescriptionObserverInterface> observer
316 ) /*override*/;
317
318 // vIndex: 36
319 virtual void
320 SetLocalDescription(::webrtc::scoped_refptr<::webrtc::SetLocalDescriptionObserverInterface> observer) /*override*/;
321
322 // vIndex: 35
323 virtual void SetLocalDescription(
324 ::webrtc::SetSessionDescriptionObserver* observer,
325 ::webrtc::SessionDescriptionInterface* desc_ptr
326 ) /*override*/;
327
328 // vIndex: 34
329 virtual void SetLocalDescription(::webrtc::SetSessionDescriptionObserver* observer) /*override*/;
330
331 // vIndex: 39
332 virtual void SetRemoteDescription(
333 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> desc,
334 ::webrtc::scoped_refptr<::webrtc::SetRemoteDescriptionObserverInterface> observer
335 ) /*override*/;
336
337 // vIndex: 38
338 virtual void SetRemoteDescription(
339 ::webrtc::SetSessionDescriptionObserver* observer,
340 ::webrtc::SessionDescriptionInterface* desc_ptr
341 ) /*override*/;
342
343 // vIndex: 41
344 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() /*override*/;
345
346 // vIndex: 42
347 virtual ::webrtc::RTCError
348 SetConfiguration(::webrtc::PeerConnectionInterface::RTCConfiguration const& configuration) /*override*/;
349
350 // vIndex: 44
351 virtual bool AddIceCandidate(::webrtc::IceCandidateInterface const* ice_candidate) /*override*/;
352
353 // vIndex: 43
354 virtual void AddIceCandidate(
355 ::std::unique_ptr<::webrtc::IceCandidateInterface> candidate,
356 ::std::function<void(::webrtc::RTCError)> callback
357 ) /*override*/;
358
359 // vIndex: 45
360 virtual bool RemoveIceCandidates(::std::vector<::cricket::Candidate> const& candidates) /*override*/;
361
362 // vIndex: 46
363 virtual ::webrtc::RTCError SetBitrate(::webrtc::BitrateSettings const& bitrate) /*override*/;
364
365 // vIndex: 47
366 virtual void ReconfigureBandwidthEstimation(::webrtc::BandwidthEstimationSettings const& settings) /*override*/;
367
368 // vIndex: 48
369 virtual void SetAudioPlayout(bool playout) /*override*/;
370
371 // vIndex: 49
372 virtual void SetAudioRecording(bool recording) /*override*/;
373
374 // vIndex: 50
375 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
376 LookupDtlsTransportByMid(::std::string const& mid) /*override*/;
377
378 // vIndex: 51
379 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport() const /*override*/;
380
381 // vIndex: 58
382 virtual void AddAdaptationResource(::webrtc::scoped_refptr<::webrtc::Resource> resource) /*override*/;
383
384 // vIndex: 60
385 virtual bool
386 StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> output, int64 output_period_ms) /*override*/;
387
388 // vIndex: 59
389 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> output) /*override*/;
390
391 // vIndex: 61
392 virtual void StopRtcEventLog() /*override*/;
393
394 // vIndex: 62
395 virtual void Close() /*override*/;
396
397 // vIndex: 63
398 virtual ::rtc::Thread* signaling_thread() const /*override*/;
399
400 // vIndex: 64
401 virtual ::rtc::Thread* network_thread() const /*override*/;
402
403 // vIndex: 65
404 virtual ::rtc::Thread* worker_thread() const /*override*/;
405
406 // vIndex: 1
407 virtual ::std::string session_id() const /*override*/;
408
409 // vIndex: 66
410 virtual bool initial_offerer() const /*override*/;
411
412 // vIndex: 67
413 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>>
414 GetTransceiversInternal() const /*override*/;
415
416 // vIndex: 68
417 virtual ::std::vector<::webrtc::DataChannelStats> GetDataChannelStats() const /*override*/;
418
419 // vIndex: 69
420 virtual ::std::optional<::std::string> sctp_transport_name() const /*override*/;
421
422 // vIndex: 3
423 virtual ::std::optional<::std::string> sctp_mid() const /*override*/;
424
425 // vIndex: 70
426 virtual ::std::vector<::cricket::CandidateStats> GetPooledCandidateStats() const /*override*/;
427
428 // vIndex: 71
429 virtual ::std::map<::std::string, ::cricket::TransportStats>
430 GetTransportStatsByNames(::std::set<::std::string> const& transport_names) /*override*/;
431
432 // vIndex: 72
433 virtual ::webrtc::Call::Stats GetCallStats() /*override*/;
434
435 // vIndex: 73
436 virtual ::std::optional<::webrtc::AudioDeviceModule::Stats> GetAudioDeviceStats() /*override*/;
437
438 // vIndex: 74
439 virtual bool GetLocalCertificate(
440 ::std::string const& transport_name,
441 ::webrtc::scoped_refptr<::rtc::RTCCertificate>* certificate
442 ) /*override*/;
443
444 // vIndex: 75
445 virtual ::std::unique_ptr<::rtc::SSLCertChain>
446 GetRemoteSSLCertChain(::std::string const& transport_name) /*override*/;
447
448 // vIndex: 76
449 virtual bool IceRestartPending(::std::string const& content_name) const /*override*/;
450
451 // vIndex: 2
452 virtual bool NeedsIceRestart(::std::string const& content_name) const /*override*/;
453
454 // vIndex: 77
455 virtual bool GetSslRole(::std::string const& content_name, ::rtc::SSLRole* role) /*override*/;
456
457 // vIndex: 78
458 virtual void NoteDataAddedEvent() /*override*/;
459
460 // vIndex: 17
461 virtual ::webrtc::PeerConnectionObserver* Observer() const /*override*/;
462
463 // vIndex: 22
464 virtual bool IsClosed() const /*override*/;
465
466 // vIndex: 18
467 virtual ::std::optional<::rtc::SSLRole> GetSctpSslRole_n() /*override*/;
468
469 // vIndex: 79
470 virtual void
471 OnSctpDataChannelStateChanged(int channel_id, ::webrtc::DataChannelInterface::DataState state) /*override*/;
472
473 // vIndex: 40
474 virtual bool ShouldFireNegotiationNeededEvent(uint event_id) /*override*/;
475
476 // vIndex: 16
477 virtual ::webrtc::LegacyStatsCollector* legacy_stats() /*override*/;
478
479 // vIndex: 14
480 virtual ::webrtc::DataChannelController* data_channel_controller() /*override*/;
481
482 // vIndex: 9
483 virtual bool dtls_enabled() const /*override*/;
484
485 // vIndex: 4
486 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration const* configuration() const /*override*/;
487
488 // vIndex: 6
489 virtual ::webrtc::PeerConnectionMessageHandler* message_handler() /*override*/;
490
491 // vIndex: 8
492 virtual ::webrtc::RtpTransmissionManager* rtp_manager() /*override*/;
493
494 // vIndex: 7
495 virtual ::webrtc::RtpTransmissionManager const* rtp_manager() const /*override*/;
496
497 // vIndex: 12
498 virtual ::webrtc::JsepTransportController* transport_controller_s() /*override*/;
499
500 // vIndex: 13
501 virtual ::webrtc::JsepTransportController* transport_controller_n() /*override*/;
502
503 // vIndex: 15
504 virtual ::cricket::PortAllocator* port_allocator() /*override*/;
505
506 // vIndex: 28
507 virtual ::webrtc::Call* call_ptr() /*override*/;
508
509 // vIndex: 10
510 virtual ::webrtc::PeerConnectionFactoryInterface::Options const* options() const /*override*/;
511
512 // vIndex: 20
513 virtual void SetIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState new_state) /*override*/;
514
515 // vIndex: 21
516 virtual void NoteUsageEvent(::webrtc::UsageEvent event) /*override*/;
517
518 // vIndex: 27
519 virtual void AddRemoteCandidate(::std::string const& mid, ::cricket::Candidate const& candidate) /*override*/;
520
521 // vIndex: 5
522 virtual void ReportSdpBundleUsage(::webrtc::SessionDescriptionInterface const& remote_description) /*override*/;
523
524 // vIndex: 23
525 virtual bool IsUnifiedPlan() const /*override*/;
526
527 // vIndex: 24
528 virtual bool ValidateBundleSettings(
529 ::cricket::SessionDescription const* desc,
530 ::std::map<::std::string, ::cricket::ContentGroup const*> const& bundle_groups_by_mid
531 ) /*override*/;
532
533 // vIndex: 30
534 virtual bool CreateDataChannelTransport(::std::string_view mid) /*override*/;
535
536 // vIndex: 31
537 virtual void DestroyDataChannelTransport(::webrtc::RTCError error) /*override*/;
538
539 // vIndex: 26
540 virtual void StartSctpTransport(int local_port, int remote_port, int max_message_size) /*override*/;
541
542 // vIndex: 11
543 virtual ::webrtc::CryptoOptions GetCryptoOptions() /*override*/;
544
545 // vIndex: 29
546 virtual bool SrtpRequired() const /*override*/;
547
548 // vIndex: 32
549 virtual ::webrtc::FieldTrialsView const& trials() const /*override*/;
550
551 // vIndex: 0
552 virtual ~PeerConnection() /*override*/;
553
554 // vIndex: 1
555 virtual bool OnTransportChanged(
556 ::std::string const& mid,
557 ::webrtc::RtpTransportInternal* rtp_transport,
558 ::webrtc::scoped_refptr<::webrtc::DtlsTransport> dtls_transport,
559 ::webrtc::DataChannelTransportInterface* data_channel_transport
560 ) /*override*/;
561 // NOLINTEND
562
563public:
564 // member functions
565 // NOLINTBEGIN
566 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
567 ::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface> track,
568 ::std::vector<::std::string> const& stream_ids,
569 ::std::vector<::webrtc::RtpEncodingParameters> const* init_send_encodings
570 );
571
572 MCNAPI bool ConfiguredForMedia() const;
573
574 MCNAPI ::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>
576
577 MCNAPI bool GetLocalCandidateMediaIndex(::std::string const& content_name, int* sdp_mline_index);
578
579 MCNAPI ::webrtc::RTCError Initialize(
580 ::webrtc::PeerConnectionInterface::RTCConfiguration const& configuration,
581 ::webrtc::PeerConnectionDependencies dependencies
582 );
583
585 ::std::set<::rtc::SocketAddress> const& stun_servers,
586 ::std::vector<::cricket::RelayServerConfig> const& turn_servers,
587 ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const& mapped_ports,
588 ::webrtc::PeerConnectionInterface::RTCConfiguration const& configuration
589 );
590
591 MCNAPI ::std::function<void(::rtc::CopyOnWriteBuffer const&, int64)> InitializeRtcpCallback();
592
594 ::webrtc::PeerConnectionInterface::RTCConfiguration const& configuration,
595 ::webrtc::PeerConnectionDependencies const& dependencies
596 );
597
598 MCNAPI ::std::function<void(::webrtc::RtpPacketReceived const&)> InitializeUnDemuxablePacketHandler();
599
600 MCNAPI void OnIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface> candidate);
601
603 ::std::string const& address,
604 int port,
605 ::std::string const& url,
606 int error_code,
607 ::std::string const& error_text
608 );
609
610 MCNAPI void OnIceCandidatesRemoved(::std::vector<::cricket::Candidate> const& candidates);
611
612 MCNAPI void OnIceGatheringChange(::webrtc::PeerConnectionInterface::IceGatheringState new_state);
613
614 MCNAPI void OnSelectedCandidatePairChanged(::cricket::CandidatePairChangeEvent const& event);
615
616 MCNAPI void OnTransportControllerCandidateChanged(::cricket::CandidatePairChangeEvent const& event);
617
618 MCNAPI void OnTransportControllerCandidateError(::cricket::IceCandidateErrorEvent const& event);
619
621 ::std::string const& transport_name,
622 ::std::vector<::cricket::Candidate> const& candidates
623 );
624
625 MCNAPI void OnTransportControllerCandidatesRemoved(::std::vector<::cricket::Candidate> const& candidates);
626
627 MCNAPI void OnTransportControllerConnectionState(::cricket::IceConnectionState state);
628
629 MCNAPI void OnTransportControllerDtlsHandshakeError(::rtc::SSLHandshakeError error);
630
631 MCNAPI void OnTransportControllerGatheringState(::cricket::IceGatheringState state);
632
634 ::webrtc::Environment const& env,
635 ::webrtc::scoped_refptr<::webrtc::ConnectionContext> context,
636 ::webrtc::PeerConnectionFactoryInterface::Options const& options,
637 bool is_unified_plan,
638 ::std::unique_ptr<::webrtc::Call> call,
639 ::webrtc::PeerConnectionDependencies& dependencies,
640 bool dtls_enabled
641 );
642
644 ::std::set<::rtc::SocketAddress> const& stun_servers,
645 ::std::vector<::cricket::RelayServerConfig> const& turn_servers,
646 ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const& mapped_ports,
647 ::webrtc::PeerConnectionInterface::IceTransportsType type,
648 int candidate_pool_size,
649 ::webrtc::PortPrunePolicy turn_port_prune_policy,
650 ::webrtc::TurnCustomizer* turn_customizer,
651 ::std::optional<int> stun_candidate_keepalive_interval,
652 bool have_local_description
653 );
654
656
657 MCNAPI void ReportIceCandidateCollected(::cricket::Candidate const& candidate);
658
659 MCNAPI void ReportRemoteIceCandidateAdded(::cricket::Candidate const& candidate);
660
662 ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>>
663 transceivers
664 );
665
666 MCNAPI void ReportUsagePattern() const;
667
668 MCNAPI void SetConnectionState(::webrtc::PeerConnectionInterface::PeerConnectionState new_state);
669
670 MCNAPI void SetSctpTransportName(::std::string sctp_transport_name);
671
672 MCNAPI void SetStandardizedIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState new_state);
673
674 MCNAPI ::std::optional<::std::string> SetupDataChannelTransport_n(::std::string_view mid);
675
676 MCNAPI bool StartRtcEventLog_w(::std::unique_ptr<::webrtc::RtcEventLogOutput> output, int64 output_period_ms);
677
678 MCNAPI void StopRtcEventLog_w();
679
680 MCNAPI void TeardownDataChannelTransport_n(::webrtc::RTCError error);
681 // NOLINTEND
682
683public:
684 // static functions
685 // NOLINTBEGIN
686 MCNAPI static ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnection>> Create(
687 ::webrtc::Environment const& env,
688 ::webrtc::scoped_refptr<::webrtc::ConnectionContext> context,
689 ::webrtc::PeerConnectionFactoryInterface::Options const& options,
690 ::std::unique_ptr<::webrtc::Call> call,
691 ::webrtc::PeerConnectionInterface::RTCConfiguration const& configuration,
692 ::webrtc::PeerConnectionDependencies dependencies
693 );
694
695 MCNAPI static void ReportBestConnectionState(::cricket::TransportStats const& stats);
696
697 MCNAPI static void ReportNegotiatedCiphers(
698 bool dtls_enabled,
699 ::cricket::TransportStats const& stats,
700 ::std::set<::cricket::MediaType> const& media_types
701 );
702 // NOLINTEND
703
704public:
705 // constructor thunks
706 // NOLINTBEGIN
707 MCNAPI void* $ctor(
708 ::webrtc::Environment const& env,
709 ::webrtc::scoped_refptr<::webrtc::ConnectionContext> context,
710 ::webrtc::PeerConnectionFactoryInterface::Options const& options,
711 bool is_unified_plan,
712 ::std::unique_ptr<::webrtc::Call> call,
713 ::webrtc::PeerConnectionDependencies& dependencies,
714 bool dtls_enabled
715 );
716 // NOLINTEND
717
718public:
719 // destructor thunk
720 // NOLINTBEGIN
721 MCNAPI void $dtor();
722 // NOLINTEND
723
724public:
725 // virtual function thunks
726 // NOLINTBEGIN
728
730
731 MCNAPI bool $AddStream(::webrtc::MediaStreamInterface* local_stream);
732
733 MCNAPI void $RemoveStream(::webrtc::MediaStreamInterface* remove_stream);
734
735 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> $AddTrack(
736 ::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface> track,
737 ::std::vector<::std::string> const& stream_ids
738 );
739
740 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> $AddTrack(
741 ::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface> track,
742 ::std::vector<::std::string> const& stream_ids,
743 ::std::vector<::webrtc::RtpEncodingParameters> const& init_send_encodings
744 );
745
746 MCNAPI ::webrtc::RTCError $RemoveTrackOrError(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface> sender);
747
748 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
750
751 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> $AddTransceiver(
752 ::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface> track,
753 ::webrtc::RtpTransceiverInit const& init
754 );
755
756 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
757 $AddTransceiver(::cricket::MediaType media_type);
758
759 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
760 $AddTransceiver(::cricket::MediaType media_type, ::webrtc::RtpTransceiverInit const& init);
761
762 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> $AddTransceiver(
763 ::cricket::MediaType media_type,
764 ::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface> track,
765 ::webrtc::RtpTransceiverInit const& init,
766 bool update_negotiation_needed
767 );
768
769 MCNAPI ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
770 $CreateSender(::std::string const& kind, ::std::string const& stream_id);
771
772 MCNAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> $GetSenders() const;
773
774 MCNAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> $GetReceivers() const;
775
776 MCNAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> $GetTransceivers() const;
777
778 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
779 $CreateDataChannelOrError(::std::string const& label, ::webrtc::DataChannelInit const* config);
780
781 MCNAPI bool $GetStats(
782 ::webrtc::StatsObserver* observer,
783 ::webrtc::MediaStreamTrackInterface* track,
784 ::webrtc::PeerConnectionInterface::StatsOutputLevel level
785 );
786
787 MCNAPI void $GetStats(::webrtc::RTCStatsCollectorCallback* callback);
788
789 MCNAPI void $GetStats(
790 ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface> selector,
791 ::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback> callback
792 );
793
794 MCNAPI void $GetStats(
795 ::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface> selector,
796 ::webrtc::scoped_refptr<::webrtc::RTCStatsCollectorCallback> callback
797 );
798
799 MCNAPI void $ClearStatsCache();
800
801 MCNAPI ::webrtc::PeerConnectionInterface::SignalingState $signaling_state();
802
803 MCNAPI ::webrtc::PeerConnectionInterface::IceConnectionState $ice_connection_state();
804
805 MCNAPI ::webrtc::PeerConnectionInterface::IceConnectionState $ice_connection_state_internal();
806
807 MCNAPI ::webrtc::PeerConnectionInterface::IceConnectionState $standardized_ice_connection_state();
808
809 MCNAPI ::webrtc::PeerConnectionInterface::PeerConnectionState $peer_connection_state();
810
811 MCNAPI ::webrtc::PeerConnectionInterface::IceGatheringState $ice_gathering_state();
812
813 MCNAPI ::std::optional<bool> $can_trickle_ice_candidates();
814
815 MCNAPI ::webrtc::SessionDescriptionInterface const* $local_description() const;
816
817 MCNAPI ::webrtc::SessionDescriptionInterface const* $remote_description() const;
818
820
822
824
826
827 MCNAPI void $RestartIce();
828
829 MCNAPI void $CreateOffer(
830 ::webrtc::CreateSessionDescriptionObserver* observer,
831 ::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions const& options
832 );
833
834 MCNAPI void $CreateAnswer(
835 ::webrtc::CreateSessionDescriptionObserver* observer,
836 ::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions const& options
837 );
838
840 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> desc,
841 ::webrtc::scoped_refptr<::webrtc::SetLocalDescriptionObserverInterface> observer
842 );
843
845
847 ::webrtc::SetSessionDescriptionObserver* observer,
848 ::webrtc::SessionDescriptionInterface* desc_ptr
849 );
850
851 MCNAPI void $SetLocalDescription(::webrtc::SetSessionDescriptionObserver* observer);
852
854 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> desc,
855 ::webrtc::scoped_refptr<::webrtc::SetRemoteDescriptionObserverInterface> observer
856 );
857
859 ::webrtc::SetSessionDescriptionObserver* observer,
860 ::webrtc::SessionDescriptionInterface* desc_ptr
861 );
862
864
865 MCNAPI ::webrtc::RTCError
867
868 MCNAPI bool $AddIceCandidate(::webrtc::IceCandidateInterface const* ice_candidate);
869
870 MCNAPI void $AddIceCandidate(
871 ::std::unique_ptr<::webrtc::IceCandidateInterface> candidate,
872 ::std::function<void(::webrtc::RTCError)> callback
873 );
874
875 MCNAPI bool $RemoveIceCandidates(::std::vector<::cricket::Candidate> const& candidates);
876
877 MCNAPI ::webrtc::RTCError $SetBitrate(::webrtc::BitrateSettings const& bitrate);
878
879 MCNAPI void $ReconfigureBandwidthEstimation(::webrtc::BandwidthEstimationSettings const& settings);
880
881 MCNAPI void $SetAudioPlayout(bool playout);
882
883 MCNAPI void $SetAudioRecording(bool recording);
884
885 MCNAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
886 $LookupDtlsTransportByMid(::std::string const& mid);
887
888 MCNAPI ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> $GetSctpTransport() const;
889
890 MCNAPI void $AddAdaptationResource(::webrtc::scoped_refptr<::webrtc::Resource> resource);
891
892 MCNAPI bool $StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> output, int64 output_period_ms);
893
894 MCNAPI bool $StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> output);
895
896 MCNAPI void $StopRtcEventLog();
897
898 MCNAPI void $Close();
899
900 MCNAPI ::rtc::Thread* $signaling_thread() const;
901
902 MCNAPI ::rtc::Thread* $network_thread() const;
903
904 MCNAPI ::rtc::Thread* $worker_thread() const;
905
906 MCNAPI ::std::string $session_id() const;
907
908 MCNAPI bool $initial_offerer() const;
909
910 MCNAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>>
912
913 MCNAPI ::std::vector<::webrtc::DataChannelStats> $GetDataChannelStats() const;
914
915 MCNAPI ::std::optional<::std::string> $sctp_transport_name() const;
916
917 MCNAPI ::std::optional<::std::string> $sctp_mid() const;
918
919 MCNAPI ::std::vector<::cricket::CandidateStats> $GetPooledCandidateStats() const;
920
921 MCNAPI ::std::map<::std::string, ::cricket::TransportStats>
922 $GetTransportStatsByNames(::std::set<::std::string> const& transport_names);
923
924 MCNAPI ::webrtc::Call::Stats $GetCallStats();
925
926 MCNAPI ::std::optional<::webrtc::AudioDeviceModule::Stats> $GetAudioDeviceStats();
927
929 ::std::string const& transport_name,
930 ::webrtc::scoped_refptr<::rtc::RTCCertificate>* certificate
931 );
932
933 MCNAPI ::std::unique_ptr<::rtc::SSLCertChain> $GetRemoteSSLCertChain(::std::string const& transport_name);
934
935 MCNAPI bool $IceRestartPending(::std::string const& content_name) const;
936
937 MCNAPI bool $NeedsIceRestart(::std::string const& content_name) const;
938
939 MCNAPI bool $GetSslRole(::std::string const& content_name, ::rtc::SSLRole* role);
940
941 MCNAPI void $NoteDataAddedEvent();
942
943 MCNAPI ::webrtc::PeerConnectionObserver* $Observer() const;
944
945 MCNAPI bool $IsClosed() const;
946
947 MCNAPI ::std::optional<::rtc::SSLRole> $GetSctpSslRole_n();
948
949 MCNAPI void $OnSctpDataChannelStateChanged(int channel_id, ::webrtc::DataChannelInterface::DataState state);
950
951 MCNAPI bool $ShouldFireNegotiationNeededEvent(uint event_id);
952
954
956
957 MCNAPI bool $dtls_enabled() const;
958
960
962
964
965 MCNAPI ::webrtc::RtpTransmissionManager const* $rtp_manager() const;
966
968
970
971 MCNAPI ::cricket::PortAllocator* $port_allocator();
972
973 MCNAPI ::webrtc::Call* $call_ptr();
974
975 MCNAPI ::webrtc::PeerConnectionFactoryInterface::Options const* $options() const;
976
977 MCNAPI void $SetIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState new_state);
978
979 MCNAPI void $NoteUsageEvent(::webrtc::UsageEvent event);
980
981 MCNAPI void $AddRemoteCandidate(::std::string const& mid, ::cricket::Candidate const& candidate);
982
983 MCNAPI void $ReportSdpBundleUsage(::webrtc::SessionDescriptionInterface const& remote_description);
984
985 MCNAPI bool $IsUnifiedPlan() const;
986
988 ::cricket::SessionDescription const* desc,
989 ::std::map<::std::string, ::cricket::ContentGroup const*> const& bundle_groups_by_mid
990 );
991
992 MCNAPI bool $CreateDataChannelTransport(::std::string_view mid);
993
994 MCNAPI void $DestroyDataChannelTransport(::webrtc::RTCError error);
995
996 MCNAPI void $StartSctpTransport(int local_port, int remote_port, int max_message_size);
997
999
1000 MCNAPI bool $SrtpRequired() const;
1001
1002 MCNAPI ::webrtc::FieldTrialsView const& $trials() const;
1003
1005 ::std::string const& mid,
1006 ::webrtc::RtpTransportInternal* rtp_transport,
1007 ::webrtc::scoped_refptr<::webrtc::DtlsTransport> dtls_transport,
1008 ::webrtc::DataChannelTransportInterface* data_channel_transport
1009 );
1010 // NOLINTEND
1011
1012public:
1013 // vftables
1014 // NOLINTBEGIN
1015 MCNAPI static void** $vftable();
1016
1018
1020 // NOLINTEND
1021};
1022
1023} // namespace webrtc
Definition Options.h:32
Definition AudioDeviceModule.h:15
Definition Call.h:35
Definition ConnectionContext.h:17
Definition CreateSessionDescriptionObserver.h:16
Definition DataChannelController.h:30
Definition DataChannelInterface.h:19
Definition DataChannelTransportInterface.h:15
Definition DtlsTransportInterface.h:18
Definition DtlsTransport.h:20
Definition Environment.h:7
Definition FieldTrialsView.h:7
Definition IceCandidateInterface.h:12
Definition JsepTransportController.h:59
Definition JsepTransportController.h:50
Definition LegacyStatsCollector.h:29
Definition MediaStreamInterface.h:18
Definition MediaStreamTrackInterface.h:11
Definition PeerConnectionFactoryInterface.h:30
Definition PeerConnectionInterface.h:44
Definition PeerConnectionInternal.h:28
Definition PeerConnectionMessageHandler.h:17
Definition PeerConnectionObserver.h:22
Definition PeerConnection.h:88
MCAPI::webrtc::SessionDescriptionInterface const * $pending_remote_description() const
MCAPI ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface > $remote_streams()
MCAPI::webrtc::PeerConnectionInterface::IceGatheringState $ice_gathering_state()
MCAPI bool $IceRestartPending(::std::string const &content_name) const
MCAPI ::std::vector<::cricket::CandidateStats > $GetPooledCandidateStats() const
MCAPI bool $CreateDataChannelTransport(::std::string_view mid)
MCAPI void SetSctpTransportName(::std::string sctp_transport_name)
MCAPI ::std::optional<::webrtc::AudioDeviceModule::Stats > $GetAudioDeviceStats()
MCAPI void $NoteDataAddedEvent()
MCAPI void $SetAudioPlayout(bool playout)
MCAPI::webrtc::SessionDescriptionInterface const * $remote_description() const
MCAPI void $SetRemoteDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface > desc, ::webrtc::scoped_refptr<::webrtc::SetRemoteDescriptionObserverInterface > observer)
MCAPI void OnIceCandidateError(::std::string const &address, int port, ::std::string const &url, int error_code, ::std::string const &error_text)
MCAPI::webrtc::RTCError $SetBitrate(::webrtc::BitrateSettings const &bitrate)
MCAPI bool $StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput > output, int64 output_period_ms)
MCAPI void $NoteUsageEvent(::webrtc::UsageEvent event)
MCAPI bool $ValidateBundleSettings(::cricket::SessionDescription const *desc, ::std::map<::std::string, ::cricket::ContentGroup const * > const &bundle_groups_by_mid)
MCAPI void * $ctor(::webrtc::Environment const &env, ::webrtc::scoped_refptr<::webrtc::ConnectionContext > context, ::webrtc::PeerConnectionFactoryInterface::Options const &options, bool is_unified_plan, ::std::unique_ptr<::webrtc::Call > call, ::webrtc::PeerConnectionDependencies &dependencies, bool dtls_enabled)
MCAPI void $StartSctpTransport(int local_port, int remote_port, int max_message_size)
MCAPI ::std::function< void(::rtc::CopyOnWriteBuffer const &, int64)> InitializeRtcpCallback()
MCAPI::webrtc::SessionDescriptionInterface const * $local_description() const
MCAPI void $DestroyDataChannelTransport(::webrtc::RTCError error)
MCAPI void $CreateOffer(::webrtc::CreateSessionDescriptionObserver *observer, ::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions const &options)
MCAPI void OnSelectedCandidatePairChanged(::cricket::CandidatePairChangeEvent const &event)
MCAPI::webrtc::PeerConnectionInterface::IceConnectionState $ice_connection_state_internal()
MCAPI::webrtc::Call::Stats $GetCallStats()
MCAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface > > $GetReceivers() const
MCAPI::webrtc::RTCError $RemoveTrackOrError(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface > sender)
MCAPI::webrtc::JsepTransportController * InitializeTransportController_n(::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration, ::webrtc::PeerConnectionDependencies const &dependencies)
MCAPI::webrtc::RTCError Initialize(::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration, ::webrtc::PeerConnectionDependencies dependencies)
MCAPI void OnTransportControllerCandidateError(::cricket::IceCandidateErrorEvent const &event)
MCAPI::webrtc::PeerConnectionInterface::PeerConnectionState $peer_connection_state()
MCAPI::webrtc::FieldTrialsView const & $trials() const
MCAPI::std::string $session_id() const
MCAPI void $SetAudioRecording(bool recording)
MCAPI void OnTransportControllerGatheringState(::cricket::IceGatheringState state)
MCAPI bool $SrtpRequired() const
MCAPI::rtc::Thread * $network_thread() const
MCAPI bool $dtls_enabled() const
MCAPI void OnTransportControllerCandidatesGathered(::std::string const &transport_name, ::std::vector<::cricket::Candidate > const &candidates)
MCAPI bool $GetSslRole(::std::string const &content_name, ::rtc::SSLRole *role)
MCAPI ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface > $GetSctpTransport() const
MCAPI void SetStandardizedIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState new_state)
MCAPI::webrtc::RtpTransmissionManager * $rtp_manager()
MCAPI::webrtc::PeerConnectionMessageHandler * $message_handler()
MCAPI ::std::optional<::rtc::SSLRole > $GetSctpSslRole_n()
MCAPI void ReportUsagePattern() const
MCAPI bool $RemoveIceCandidates(::std::vector<::cricket::Candidate > const &candidates)
MCAPI bool ConfiguredForMedia() const
MCAPI::webrtc::JsepTransportController * $transport_controller_n()
MCAPI void ReportTransportStats(::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver > > > transceivers)
MCAPI void $RestartIce()
MCAPI void ReportIceCandidateCollected(::cricket::Candidate const &candidate)
MCAPI void $OnSctpDataChannelStateChanged(int channel_id, ::webrtc::DataChannelInterface::DataState state)
MCAPI void $StopRtcEventLog()
MCAPI::webrtc::PeerConnectionInterface::IceConnectionState $ice_connection_state()
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface > > $CreateDataChannelOrError(::std::string const &label, ::webrtc::DataChannelInit const *config)
MCAPI bool $initial_offerer() const
MCAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface > > $GetTransceivers() const
static MCAPI void ** $vftableForPeerConnectionSdpMethods()
MCAPI ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface > $local_streams()
MCAPI void OnIceGatheringChange(::webrtc::PeerConnectionInterface::IceGatheringState new_state)
MCAPI void StopRtcEventLog_w()
MCAPI void $ReconfigureBandwidthEstimation(::webrtc::BandwidthEstimationSettings const &settings)
MCAPI bool $NeedsIceRestart(::std::string const &content_name) const
MCAPI void $RemoveStream(::webrtc::MediaStreamInterface *remove_stream)
static MCAPI void ** $vftable()
MCAPI::webrtc::SessionDescriptionInterface const * $pending_local_description() const
MCAPI ::std::vector<::webrtc::DataChannelStats > $GetDataChannelStats() const
MCAPI::webrtc::RTCError $SetConfiguration(::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration)
MCAPI void ReportRemoteIceCandidateAdded(::cricket::Candidate const &candidate)
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface > > $AddTransceiver(::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface > track)
MCAPI::webrtc::PeerConnection::InitializePortAllocatorResult InitializePortAllocator_n(::std::set<::rtc::SocketAddress > const &stun_servers, ::std::vector<::cricket::RelayServerConfig > const &turn_servers, ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress > > const &mapped_ports, ::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration)
MCAPI bool $IsUnifiedPlan() const
MCAPI void $SetLocalDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface > desc, ::webrtc::scoped_refptr<::webrtc::SetLocalDescriptionObserverInterface > observer)
MCAPI bool $GetStats(::webrtc::StatsObserver *observer, ::webrtc::MediaStreamTrackInterface *track, ::webrtc::PeerConnectionInterface::StatsOutputLevel level)
MCAPI void OnIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface > candidate)
MCAPI ::std::map<::std::string, ::cricket::TransportStats > $GetTransportStatsByNames(::std::set<::std::string > const &transport_names)
MCAPI void TeardownDataChannelTransport_n(::webrtc::RTCError error)
MCAPI ::std::optional<::std::string > $sctp_transport_name() const
MCAPI::webrtc::PeerConnectionInterface::IceConnectionState $standardized_ice_connection_state()
MCAPI bool $AddIceCandidate(::webrtc::IceCandidateInterface const *ice_candidate)
MCAPI void OnTransportControllerCandidatesRemoved(::std::vector<::cricket::Candidate > const &candidates)
MCAPI bool GetLocalCandidateMediaIndex(::std::string const &content_name, int *sdp_mline_index)
MCAPI void SetConnectionState(::webrtc::PeerConnectionInterface::PeerConnectionState new_state)
static MCAPI void ** $vftableForPeerConnectionInterface()
MCAPI void OnTransportControllerConnectionState(::cricket::IceConnectionState state)
MCAPI void $ReportSdpBundleUsage(::webrtc::SessionDescriptionInterface const &remote_description)
MCAPI::rtc::Thread * $signaling_thread() const
MCAPI void ReportFirstConnectUsageMetrics()
MCAPI ::std::unique_ptr<::rtc::SSLCertChain > $GetRemoteSSLCertChain(::std::string const &transport_name)
MCAPI void OnTransportControllerDtlsHandshakeError(::rtc::SSLHandshakeError error)
MCAPI bool $IsClosed() const
MCAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface > > $GetSenders() const
MCAPI bool $AddStream(::webrtc::MediaStreamInterface *local_stream)
MCAPI::webrtc::SessionDescriptionInterface const * $current_local_description() const
MCAPI::webrtc::PeerConnectionInterface::SignalingState $signaling_state()
MCAPI::webrtc::LegacyStatsCollector * $legacy_stats()
MCAPI::webrtc::JsepTransportController * $transport_controller_s()
MCAPI::webrtc::SessionDescriptionInterface const * $current_remote_description() const
static MCAPI void ReportBestConnectionState(::cricket::TransportStats const &stats)
MCAPI ::std::optional<::std::string > SetupDataChannelTransport_n(::std::string_view mid)
MCAPI void $ClearStatsCache()
MCAPI::cricket::PortAllocator * $port_allocator()
MCAPI ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface > $CreateSender(::std::string const &kind, ::std::string const &stream_id)
MCAPI ::std::function< void(::webrtc::RtpPacketReceived const &)> InitializeUnDemuxablePacketHandler()
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface > > $AddTrack(::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface > track, ::std::vector<::std::string > const &stream_ids)
MCAPI::webrtc::CryptoOptions $GetCryptoOptions()
MCAPI bool $ShouldFireNegotiationNeededEvent(uint event_id)
MCAPI::webrtc::Call * $call_ptr()
MCAPI::webrtc::PeerConnectionObserver * $Observer() const
MCAPI void $AddRemoteCandidate(::std::string const &mid, ::cricket::Candidate const &candidate)
MCAPI bool $GetLocalCertificate(::std::string const &transport_name, ::webrtc::scoped_refptr<::rtc::RTCCertificate > *certificate)
MCAPI bool StartRtcEventLog_w(::std::unique_ptr<::webrtc::RtcEventLogOutput > output, int64 output_period_ms)
MCAPI::rtc::Thread * $worker_thread() const
MCAPI bool $OnTransportChanged(::std::string const &mid, ::webrtc::RtpTransportInternal *rtp_transport, ::webrtc::scoped_refptr<::webrtc::DtlsTransport > dtls_transport, ::webrtc::DataChannelTransportInterface *data_channel_transport)
MCAPI::webrtc::DataChannelController * $data_channel_controller()
MCAPI void OnIceCandidatesRemoved(::std::vector<::cricket::Candidate > const &candidates)
MCAPI void $AddAdaptationResource(::webrtc::scoped_refptr<::webrtc::Resource > resource)
MCAPI ::std::optional< bool > $can_trickle_ice_candidates()
MCAPI::webrtc::PeerConnectionInterface::RTCConfiguration const * $configuration() const
MCAPI bool ReconfigurePortAllocator_n(::std::set<::rtc::SocketAddress > const &stun_servers, ::std::vector<::cricket::RelayServerConfig > const &turn_servers, ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress > > const &mapped_ports, ::webrtc::PeerConnectionInterface::IceTransportsType type, int candidate_pool_size, ::webrtc::PortPrunePolicy turn_port_prune_policy, ::webrtc::TurnCustomizer *turn_customizer, ::std::optional< int > stun_candidate_keepalive_interval, bool have_local_description)
MCAPI::webrtc::PeerConnectionInterface::RTCConfiguration $GetConfiguration()
MCAPI void $SetIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState new_state)
MCAPI void $CreateAnswer(::webrtc::CreateSessionDescriptionObserver *observer, ::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions const &options)
MCAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver > > > $GetTransceiversInternal() const
MCAPI ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface > $LookupDtlsTransportByMid(::std::string const &mid)
MCAPI void OnTransportControllerCandidateChanged(::cricket::CandidatePairChangeEvent const &event)
MCAPI ::std::optional<::std::string > $sctp_mid() const
MCAPI::webrtc::PeerConnectionFactoryInterface::Options const * $options() const
MCAPI ::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver > > FindTransceiverBySender(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface > sender)
static MCAPI void ReportNegotiatedCiphers(bool dtls_enabled, ::cricket::TransportStats const &stats, ::std::set<::cricket::MediaType > const &media_types)
Definition RTCErrorOr.h:8
Definition RTCError.h:10
Definition RTCStatsCollectorCallback.h:16
Definition Resource.h:15
Definition RtcEventLogOutput.h:7
Definition RtpPacketReceived.h:16
Definition RtpReceiverInterface.h:24
Definition RtpSenderInterface.h:26
Definition RtpTransceiverInterface.h:22
Definition RtpTransceiverProxyWithInternal.h:8
Definition RtpTransceiver.h:37
Definition RtpTransmissionManager.h:40
Definition RtpTransportInternal.h:21
Definition SctpTransportInterface.h:18
Definition SessionDescriptionInterface.h:18
Definition SetLocalDescriptionObserverInterface.h:15
Definition SetRemoteDescriptionObserverInterface.h:15
Definition SetSessionDescriptionObserver.h:15
Definition StatsObserver.h:15
Definition StreamCollectionInterface.h:16
Definition TurnCustomizer.h:13
Definition scoped_refptr.h:8
STL namespace.
Definition context.h:5
Definition Alias.h:14
Definition BandwidthEstimationSettings.h:7
Definition BitrateSettings.h:7
Definition CryptoOptions.h:7
Definition DataChannelInit.h:7
Definition DataChannelStats.h:7
Definition PeerConnectionDependencies.h:12
Definition PeerConnectionInterface.h:193
Definition PeerConnectionInterface.h:279
Definition RtpEncodingParameters.h:7
Definition RtpTransceiverInit.h:7