LeviLamina
Loading...
Searching...
No Matches
PeerConnectionInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/MediaType.h"
7#include "mc/external/webrtc/RTCErrorOr.h"
8#include "mc/external/webrtc/RefCountInterface.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace webrtc { class Candidate; }
14namespace webrtc { class CreateSessionDescriptionObserver; }
15namespace webrtc { class DataChannelEventObserverInterface; }
16namespace webrtc { class DataChannelInterface; }
17namespace webrtc { class DtlsTransportInterface; }
18namespace webrtc { class IceCandidate; }
19namespace webrtc { class MediaStreamInterface; }
20namespace webrtc { class MediaStreamTrackInterface; }
21namespace webrtc { class NetworkControllerInterface; }
22namespace webrtc { class RTCError; }
23namespace webrtc { class RTCStatsCollectorCallback; }
24namespace webrtc { class Resource; }
25namespace webrtc { class RtcEventLogOutput; }
26namespace webrtc { class RtpReceiverInterface; }
27namespace webrtc { class RtpSenderInterface; }
28namespace webrtc { class RtpTransceiverInterface; }
29namespace webrtc { class SctpTransportInterface; }
30namespace webrtc { class SessionDescriptionInterface; }
31namespace webrtc { class SetLocalDescriptionObserverInterface; }
32namespace webrtc { class SetRemoteDescriptionObserverInterface; }
33namespace webrtc { class SetSessionDescriptionObserver; }
34namespace webrtc { class StatsObserver; }
35namespace webrtc { class StreamCollectionInterface; }
36namespace webrtc { class Thread; }
37namespace webrtc { struct BandwidthEstimationSettings; }
38namespace webrtc { struct BitrateSettings; }
39namespace webrtc { struct DataChannelInit; }
40namespace webrtc { struct RtpEncodingParameters; }
41namespace webrtc { struct RtpTransceiverInit; }
42// clang-format on
43
44namespace webrtc {
45
47public:
48 // PeerConnectionInterface inner types declare
49 // clang-format off
50 struct IceServer;
52 struct RTCConfiguration;
54 // clang-format on
55
56 // PeerConnectionInterface inner types define
57 enum class BundlePolicy : int {
58 KBundlePolicyBalanced = 0,
59 KBundlePolicyMaxBundle = 1,
60 KBundlePolicyMaxCompat = 2,
61 };
62
63 enum class CandidateNetworkPolicy : int {
64 KCandidateNetworkPolicyAll = 0,
65 KCandidateNetworkPolicyLowCost = 1,
66 };
67
68 enum class ContinualGatheringPolicy : int {
69 Once = 0,
70 Continually = 1,
71 };
72
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,
82 };
83
84 enum class IceGatheringState : int {
85 KIceGatheringNew = 0,
86 KIceGatheringGathering = 1,
87 KIceGatheringComplete = 2,
88 };
89
90 enum class IceTransportsType : int {
91 KNone = 0,
92 KRelay = 1,
93 KNoHost = 2,
94 KAll = 3,
95 };
96
97 enum class PeerConnectionState : int {
98 KNew = 0,
99 KConnecting = 1,
100 KConnected = 2,
101 KDisconnected = 3,
102 KFailed = 4,
103 KClosed = 5,
104 };
105
106 enum class RTCConfigurationType : int {
107 KSafe = 0,
108 KAggressive = 1,
109 };
110
111 enum class RtcpMuxPolicy : int {
112 KRtcpMuxPolicyNegotiate = 0,
113 KRtcpMuxPolicyRequire = 1,
114 };
115
116 enum class SignalingState : int {
117 KStable = 0,
118 KHaveLocalOffer = 1,
119 KHaveLocalPrAnswer = 2,
120 KHaveRemoteOffer = 3,
121 KHaveRemotePrAnswer = 4,
122 KClosed = 5,
123 };
124
125 enum class StatsOutputLevel : int {
126 KStatsOutputLevelStandard = 0,
127 KStatsOutputLevelDebug = 1,
128 };
129
130 enum class TcpCandidatePolicy : int {
131 KTcpCandidatePolicyEnabled = 0,
132 KTcpCandidatePolicyDisabled = 1,
133 };
134
135 enum class TlsCertPolicy : int {
136 KTlsCertPolicySecure = 0,
137 KTlsCertPolicyInsecureNoCheck = 1,
138 };
139
140 struct IceServer {
141 public:
142 // member variables
143 // NOLINTBEGIN
152 // NOLINTEND
153
154 public:
155 // member functions
156 // NOLINTBEGIN
157 MCNAPI IceServer();
158
160
161 MCNAPI ::webrtc::PeerConnectionInterface::IceServer&
163
165
166 MCNAPI ~IceServer();
167 // NOLINTEND
168
169 public:
170 // constructor thunks
171 // NOLINTBEGIN
172 MCNAPI void* $ctor();
173
175 // NOLINTEND
176
177 public:
178 // destructor thunk
179 // NOLINTBEGIN
180 MCNAPI void $dtor();
181 // NOLINTEND
182 };
183
184 struct PortAllocatorConfig {
185 public:
186 // member variables
187 // NOLINTBEGIN
191 // NOLINTEND
192
193 public:
194 // prevent constructor by default
195 PortAllocatorConfig& operator=(PortAllocatorConfig const&);
196 PortAllocatorConfig(PortAllocatorConfig const&);
197 PortAllocatorConfig();
198 };
199
201 public:
202 // member variables
203 // NOLINTBEGIN
252 // NOLINTEND
253
254 public:
255 // member functions
256 // NOLINTBEGIN
258
260
261 MCNAPI ::webrtc::PeerConnectionInterface::RTCConfiguration&
263
265
267 // NOLINTEND
268
269 public:
270 // constructor thunks
271 // NOLINTBEGIN
272 MCNAPI void* $ctor();
273
275 // NOLINTEND
276
277 public:
278 // destructor thunk
279 // NOLINTBEGIN
280 MCNAPI void $dtor();
281 // NOLINTEND
282 };
283
284 struct RTCOfferAnswerOptions {
285 public:
286 // member variables
287 // NOLINTBEGIN
296 // NOLINTEND
297
298 public:
299 // prevent constructor by default
300 RTCOfferAnswerOptions& operator=(RTCOfferAnswerOptions const&);
301 RTCOfferAnswerOptions(RTCOfferAnswerOptions const&);
302 RTCOfferAnswerOptions();
303 };
304
305public:
306 // virtual functions
307 // NOLINTBEGIN
308 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams() = 0;
309
310 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams() = 0;
311
312 virtual bool AddStream(::webrtc::MediaStreamInterface* a1) = 0;
313
314 virtual void RemoveStream(::webrtc::MediaStreamInterface* a1) = 0;
315
316 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
318 ::std::vector<::std::string> const& a2
319 ) = 0;
320
321 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
323 ::std::vector<::std::string> const& a2,
324 ::std::vector<::webrtc::RtpEncodingParameters> const& a3
325 ) = 0;
326
327 virtual ::webrtc::RTCError RemoveTrackOrError(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface> a1);
328
329 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
331
332 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> AddTransceiver(
335 ) = 0;
336
337 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
338 AddTransceiver(::webrtc::MediaType a1) = 0;
339
340 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
341 AddTransceiver(::webrtc::MediaType a1, ::webrtc::RtpTransceiverInit const& a2) = 0;
342
343 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
344 CreateSender(::std::string const& a1, ::std::string const& a2) = 0;
345
346 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders() const = 0;
347
348 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers() const = 0;
349
350 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers() const = 0;
351
352 virtual bool GetStats(
355 ::webrtc::PeerConnectionInterface::StatsOutputLevel a3
356 ) = 0;
357
358 virtual void GetStats(::webrtc::RTCStatsCollectorCallback* a1) = 0;
359
360 virtual void GetStats(
363 ) = 0;
364
365 virtual void GetStats(
368 ) = 0;
369
370 virtual void ClearStatsCache();
371
372 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
373 CreateDataChannelOrError(::std::string const& a1, ::webrtc::DataChannelInit const* a2);
374
375 virtual ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
376 CreateDataChannel(::std::string const& label, ::webrtc::DataChannelInit const* config);
377
378 virtual ::webrtc::SessionDescriptionInterface const* local_description() const = 0;
379
380 virtual ::webrtc::SessionDescriptionInterface const* remote_description() const = 0;
381
382 virtual ::webrtc::SessionDescriptionInterface const* current_local_description() const = 0;
383
384 virtual ::webrtc::SessionDescriptionInterface const* current_remote_description() const = 0;
385
386 virtual ::webrtc::SessionDescriptionInterface const* pending_local_description() const = 0;
387
388 virtual ::webrtc::SessionDescriptionInterface const* pending_remote_description() const = 0;
389
390 virtual void RestartIce() = 0;
391
392 virtual void CreateOffer(
395 ) = 0;
396
397 virtual void CreateAnswer(
400 ) = 0;
401
402 virtual void SetLocalDescription(
403 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
405 );
406
408
409 virtual void
411
412 virtual void SetLocalDescription(::webrtc::SetSessionDescriptionObserver* a1);
413
414 virtual void SetRemoteDescription(
415 ::std::unique_ptr<::webrtc::SessionDescriptionInterface> a1,
417 ) = 0;
418
419 virtual void
421
422 virtual bool ShouldFireNegotiationNeededEvent(uint a1) = 0;
423
424 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() = 0;
425
426 virtual ::webrtc::RTCError SetConfiguration(::webrtc::PeerConnectionInterface::RTCConfiguration const& a1) = 0;
427
428 virtual bool AddIceCandidate(::webrtc::IceCandidate const* a1) = 0;
429
430 virtual void
431 AddIceCandidate(::std::unique_ptr<::webrtc::IceCandidate> a1, ::std::function<void(::webrtc::RTCError)> a2);
432
433 virtual bool RemoveIceCandidate(::webrtc::IceCandidate const* a1) = 0;
434
435 virtual bool RemoveIceCandidates(::std::vector<::webrtc::Candidate> const& a1);
436
437 virtual ::webrtc::RTCError SetBitrate(::webrtc::BitrateSettings const& a1) = 0;
438
439 virtual void ReconfigureBandwidthEstimation(::webrtc::BandwidthEstimationSettings const& a1) = 0;
440
441 virtual void SetAudioPlayout(bool a1) = 0;
442
443 virtual void SetAudioRecording(bool a1) = 0;
444
445 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
446 LookupDtlsTransportByMid(::std::string const& a1) = 0;
447
448 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport() const = 0;
449
450 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() = 0;
451
452 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() = 0;
453
454 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() = 0;
455
456 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() = 0;
457
458 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() = 0;
459
460 virtual ::std::optional<bool> can_trickle_ice_candidates() = 0;
461
462 virtual void AddAdaptationResource(::webrtc::scoped_refptr<::webrtc::Resource> a1) = 0;
463
464 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1, int64 a2) = 0;
465
466 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput> a1) = 0;
467
468 virtual void StopRtcEventLog() = 0;
469
470 virtual void SetDataChannelEventObserver(::std::unique_ptr<::webrtc::DataChannelEventObserverInterface> a1) = 0;
471
472 virtual void Close() = 0;
473
474 virtual ::webrtc::Thread* signaling_thread() const = 0;
475
476 virtual ::webrtc::NetworkControllerInterface* GetNetworkController() = 0;
477
478 virtual ~PeerConnectionInterface() /*override*/ = default;
479 // NOLINTEND
480
481public:
482 // static functions
483 // NOLINTBEGIN
484 MCNAPI static ::std::string_view AsString(::webrtc::PeerConnectionInterface::SignalingState state);
485 // NOLINTEND
486
487public:
488 // virtual function thunks
489 // NOLINTBEGIN
490 MCNAPI ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
491 $CreateDataChannel(::std::string const& label, ::webrtc::DataChannelInit const* config);
492
493
494 // NOLINTEND
495};
496
497} // namespace webrtc
Definition Candidate.h:15
Definition CreateSessionDescriptionObserver.h:16
Definition DataChannelEventObserverInterface.h:7
Definition DataChannelInterface.h:19
Definition DtlsTransportInterface.h:18
Definition IceCandidate.h:12
Definition MediaStreamInterface.h:18
Definition MediaStreamTrackInterface.h:11
Definition NetworkControllerInterface.h:24
Definition PeerConnectionInterface.h:46
MCAPI ::webrtc::scoped_refptr<::webrtc::DataChannelInterface > $CreateDataChannel(::std::string const &label, ::webrtc::DataChannelInit const *config)
static MCAPI ::std::string_view AsString(::webrtc::PeerConnectionInterface::SignalingState state)
Definition RTCError.h:10
Definition RTCStatsCollectorCallback.h:16
Definition RefCountInterface.h:10
Definition Resource.h:15
Definition RtcEventLogOutput.h:7
Definition RtpReceiverInterface.h:25
Definition RtpSenderInterface.h:28
Definition RtpTransceiverInterface.h:23
Definition SctpTransportInterface.h:18
Definition SessionDescriptionInterface.h:17
Definition SetLocalDescriptionObserverInterface.h:15
Definition SetRemoteDescriptionObserverInterface.h:15
Definition SetSessionDescriptionObserver.h:15
Definition StatsObserver.h:15
Definition StreamCollectionInterface.h:16
Definition Thread.h:20
Definition scoped_refptr.h:8
Definition Alias.h:14
Definition BandwidthEstimationSettings.h:7
Definition BitrateSettings.h:7
Definition DataChannelInit.h:7
Definition PeerConnectionInterface.h:140
MCAPI bool operator==(::webrtc::PeerConnectionInterface::IceServer const &o) const
MCAPI IceServer(::webrtc::PeerConnectionInterface::IceServer const &)
MCAPI void * $ctor(::webrtc::PeerConnectionInterface::IceServer const &)
MCAPI::webrtc::PeerConnectionInterface::IceServer & operator=(::webrtc::PeerConnectionInterface::IceServer const &)
Definition PeerConnectionInterface.h:184
Definition PeerConnectionInterface.h:200
MCAPI::webrtc::PeerConnectionInterface::RTCConfiguration & operator=(::webrtc::PeerConnectionInterface::RTCConfiguration const &)
MCAPI bool operator==(::webrtc::PeerConnectionInterface::RTCConfiguration const &o) const
MCAPI void * $ctor(::webrtc::PeerConnectionInterface::RTCConfiguration const &)
MCAPI RTCConfiguration(::webrtc::PeerConnectionInterface::RTCConfiguration const &)
Definition PeerConnectionInterface.h:284
Definition RtpEncodingParameters.h:7
Definition RtpTransceiverInit.h:7