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/cricket/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 cricket { class Candidate; }
14namespace rtc { class Thread; }
15namespace webrtc { class CreateSessionDescriptionObserver; }
16namespace webrtc { class DataChannelInterface; }
17namespace webrtc { class DtlsTransportInterface; }
18namespace webrtc { class IceCandidateInterface; }
19namespace webrtc { class MediaStreamInterface; }
20namespace webrtc { class MediaStreamTrackInterface; }
21namespace webrtc { class RTCError; }
22namespace webrtc { class RTCStatsCollectorCallback; }
23namespace webrtc { class Resource; }
24namespace webrtc { class RtcEventLogOutput; }
25namespace webrtc { class RtpReceiverInterface; }
26namespace webrtc { class RtpSenderInterface; }
27namespace webrtc { class RtpTransceiverInterface; }
28namespace webrtc { class SctpTransportInterface; }
29namespace webrtc { class SessionDescriptionInterface; }
30namespace webrtc { class SetLocalDescriptionObserverInterface; }
31namespace webrtc { class SetRemoteDescriptionObserverInterface; }
32namespace webrtc { class SetSessionDescriptionObserver; }
33namespace webrtc { class StatsObserver; }
34namespace webrtc { class StreamCollectionInterface; }
35namespace webrtc { struct BandwidthEstimationSettings; }
36namespace webrtc { struct BitrateSettings; }
37namespace webrtc { struct DataChannelInit; }
38namespace webrtc { struct RtpEncodingParameters; }
39namespace webrtc { struct RtpTransceiverInit; }
40// clang-format on
41
42namespace webrtc {
43
45public:
46 // PeerConnectionInterface inner types declare
47 // clang-format off
48 struct IceServer;
50 struct RTCConfiguration;
52 // clang-format on
53
54 // PeerConnectionInterface inner types define
55 enum class SignalingState : int {
56 KStable = 0,
57 KHaveLocalOffer = 1,
58 KHaveLocalPrAnswer = 2,
59 KHaveRemoteOffer = 3,
60 KHaveRemotePrAnswer = 4,
61 KClosed = 5,
62 };
63
64 enum class IceGatheringState : int {
65 KIceGatheringNew = 0,
66 KIceGatheringGathering = 1,
67 KIceGatheringComplete = 2,
68 };
69
70 enum class PeerConnectionState : int {
71 KNew = 0,
72 KConnecting = 1,
73 KConnected = 2,
74 KDisconnected = 3,
75 KFailed = 4,
76 KClosed = 5,
77 };
78
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,
88 };
89
90 enum class TlsCertPolicy : int {
91 KTlsCertPolicySecure = 0,
92 KTlsCertPolicyInsecureNoCheck = 1,
93 };
94
95 struct IceServer {
96 public:
97 // member variables
98 // NOLINTBEGIN
107 // NOLINTEND
108
109 public:
110 // member functions
111 // NOLINTBEGIN
112 MCNAPI IceServer();
113
115
116 MCNAPI ::webrtc::PeerConnectionInterface::IceServer&
118
120
121 MCNAPI ~IceServer();
122 // NOLINTEND
123
124 public:
125 // constructor thunks
126 // NOLINTBEGIN
127 MCNAPI void* $ctor();
128
130 // NOLINTEND
131
132 public:
133 // destructor thunk
134 // NOLINTBEGIN
135 MCNAPI void $dtor();
136 // NOLINTEND
137 };
138
139 enum class IceTransportsType : int {
140 KNone = 0,
141 KRelay = 1,
142 KNoHost = 2,
143 KAll = 3,
144 };
145
146 enum class BundlePolicy : int {
147 KBundlePolicyBalanced = 0,
148 KBundlePolicyMaxBundle = 1,
149 KBundlePolicyMaxCompat = 2,
150 };
151
152 enum class RtcpMuxPolicy : int {
153 KRtcpMuxPolicyNegotiate = 0,
154 KRtcpMuxPolicyRequire = 1,
155 };
156
157 enum class TcpCandidatePolicy : int {
158 KTcpCandidatePolicyEnabled = 0,
159 KTcpCandidatePolicyDisabled = 1,
160 };
161
162 enum class CandidateNetworkPolicy : int {
163 KCandidateNetworkPolicyAll = 0,
164 KCandidateNetworkPolicyLowCost = 1,
165 };
166
167 enum class ContinualGatheringPolicy : int {
168 Once = 0,
169 Continually = 1,
170 };
171
173 public:
174 // member variables
175 // NOLINTBEGIN
179 // NOLINTEND
180
181 public:
182 // prevent constructor by default
183 PortAllocatorConfig& operator=(PortAllocatorConfig const&);
186 };
187
188 enum class RTCConfigurationType : int {
189 KSafe = 0,
190 KAggressive = 1,
191 };
192
194 public:
195 // member variables
196 // NOLINTBEGIN
245 // NOLINTEND
246
247 public:
248 // member functions
249 // NOLINTBEGIN
251
253
255
256 MCNAPI ::webrtc::PeerConnectionInterface::RTCConfiguration&
258
260
262 // NOLINTEND
263
264 public:
265 // constructor thunks
266 // NOLINTBEGIN
267 MCNAPI void* $ctor();
268
270 // NOLINTEND
271
272 public:
273 // destructor thunk
274 // NOLINTBEGIN
275 MCNAPI void $dtor();
276 // NOLINTEND
277 };
278
280 public:
281 // member variables
282 // NOLINTBEGIN
291 // NOLINTEND
292
293 public:
294 // prevent constructor by default
298 };
299
300 enum class StatsOutputLevel : int {
301 KStatsOutputLevelStandard = 0,
302 KStatsOutputLevelDebug = 1,
303 };
304
305public:
306 // virtual functions
307 // NOLINTBEGIN
308 // vIndex: 3
309 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams() = 0;
310
311 // vIndex: 4
312 virtual ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams() = 0;
313
314 // vIndex: 5
315 virtual bool AddStream(::webrtc::MediaStreamInterface*) = 0;
316
317 // vIndex: 6
318 virtual void RemoveStream(::webrtc::MediaStreamInterface*) = 0;
319
320 // vIndex: 8
321 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>>
322 AddTrack(::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface>, ::std::vector<::std::string> const&) = 0;
323
324 // vIndex: 7
325 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
327 ::std::vector<::std::string> const&,
328 ::std::vector<::webrtc::RtpEncodingParameters> const&
329 ) = 0;
330
331 // vIndex: 9
332 virtual ::webrtc::RTCError RemoveTrackOrError(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>);
333
334 // vIndex: 13
335 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
337
338 // vIndex: 12
339 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> AddTransceiver(
342 ) = 0;
343
344 // vIndex: 11
345 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
346 AddTransceiver(::cricket::MediaType) = 0;
347
348 // vIndex: 10
349 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
350 AddTransceiver(::cricket::MediaType, ::webrtc::RtpTransceiverInit const&) = 0;
351
352 // vIndex: 14
353 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
354 CreateSender(::std::string const&, ::std::string const&) = 0;
355
356 // vIndex: 15
357 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders() const = 0;
358
359 // vIndex: 16
360 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers() const = 0;
361
362 // vIndex: 17
363 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers() const = 0;
364
365 // vIndex: 21
366 virtual bool GetStats(
369 ::webrtc::PeerConnectionInterface::StatsOutputLevel
370 ) = 0;
371
372 // vIndex: 20
373 virtual void GetStats(::webrtc::RTCStatsCollectorCallback*) = 0;
374
375 // vIndex: 19
376 virtual void GetStats(
379 ) = 0;
380
381 // vIndex: 18
382 virtual void GetStats(
385 ) = 0;
386
387 // vIndex: 22
388 virtual void ClearStatsCache();
389
390 // vIndex: 23
391 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
392 CreateDataChannelOrError(::std::string const&, ::webrtc::DataChannelInit const*);
393
394 // vIndex: 24
395 virtual ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
396 CreateDataChannel(::std::string const&, ::webrtc::DataChannelInit const*);
397
398 // vIndex: 25
399 virtual ::webrtc::SessionDescriptionInterface const* local_description() const = 0;
400
401 // vIndex: 26
402 virtual ::webrtc::SessionDescriptionInterface const* remote_description() const = 0;
403
404 // vIndex: 27
405 virtual ::webrtc::SessionDescriptionInterface const* current_local_description() const = 0;
406
407 // vIndex: 28
408 virtual ::webrtc::SessionDescriptionInterface const* current_remote_description() const = 0;
409
410 // vIndex: 29
411 virtual ::webrtc::SessionDescriptionInterface const* pending_local_description() const = 0;
412
413 // vIndex: 30
414 virtual ::webrtc::SessionDescriptionInterface const* pending_remote_description() const = 0;
415
416 // vIndex: 31
417 virtual void RestartIce() = 0;
418
419 // vIndex: 32
420 virtual void CreateOffer(
423 ) = 0;
424
425 // vIndex: 33
426 virtual void CreateAnswer(
429 ) = 0;
430
431 // vIndex: 37
432 virtual void SetLocalDescription(
433 ::std::unique_ptr<::webrtc::SessionDescriptionInterface>,
435 );
436
437 // vIndex: 36
439
440 // vIndex: 35
441 virtual void
443
444 // vIndex: 34
445 virtual void SetLocalDescription(::webrtc::SetSessionDescriptionObserver*);
446
447 // vIndex: 39
448 virtual void SetRemoteDescription(
449 ::std::unique_ptr<::webrtc::SessionDescriptionInterface>,
451 ) = 0;
452
453 // vIndex: 38
455
456 // vIndex: 40
457 virtual bool ShouldFireNegotiationNeededEvent(uint) = 0;
458
459 // vIndex: 41
460 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() = 0;
461
462 // vIndex: 42
463 virtual ::webrtc::RTCError SetConfiguration(::webrtc::PeerConnectionInterface::RTCConfiguration const&) = 0;
464
465 // vIndex: 44
466 virtual bool AddIceCandidate(::webrtc::IceCandidateInterface const*) = 0;
467
468 // vIndex: 43
469 virtual void
470 AddIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface>, ::std::function<void(::webrtc::RTCError)>);
471
472 // vIndex: 45
473 virtual bool RemoveIceCandidates(::std::vector<::cricket::Candidate> const&) = 0;
474
475 // vIndex: 46
476 virtual ::webrtc::RTCError SetBitrate(::webrtc::BitrateSettings const&) = 0;
477
478 // vIndex: 47
479 virtual void ReconfigureBandwidthEstimation(::webrtc::BandwidthEstimationSettings const&) = 0;
480
481 // vIndex: 48
482 virtual void SetAudioPlayout(bool) = 0;
483
484 // vIndex: 49
485 virtual void SetAudioRecording(bool) = 0;
486
487 // vIndex: 50
488 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
489 LookupDtlsTransportByMid(::std::string const&) = 0;
490
491 // vIndex: 51
492 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport() const = 0;
493
494 // vIndex: 52
495 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() = 0;
496
497 // vIndex: 53
498 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() = 0;
499
500 // vIndex: 54
501 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() = 0;
502
503 // vIndex: 55
504 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() = 0;
505
506 // vIndex: 56
507 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() = 0;
508
509 // vIndex: 57
510 virtual ::std::optional<bool> can_trickle_ice_candidates() = 0;
511
512 // vIndex: 58
513 virtual void AddAdaptationResource(::webrtc::scoped_refptr<::webrtc::Resource>) = 0;
514
515 // vIndex: 60
516 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput>, int64) = 0;
517
518 // vIndex: 59
519 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput>) = 0;
520
521 // vIndex: 61
522 virtual void StopRtcEventLog() = 0;
523
524 // vIndex: 62
525 virtual void Close() = 0;
526
527 // vIndex: 63
528 virtual ::rtc::Thread* signaling_thread() const = 0;
529
530 // vIndex: 2
531 virtual ~PeerConnectionInterface() /*override*/ = default;
532 // NOLINTEND
533
534public:
535 // static functions
536 // NOLINTBEGIN
537 MCNAPI static ::std::string_view AsString(::webrtc::PeerConnectionInterface::SignalingState);
538 // NOLINTEND
539
540public:
541 // virtual function thunks
542 // NOLINTBEGIN
543
544 // NOLINTEND
545};
546
547} // namespace webrtc
Definition CreateSessionDescriptionObserver.h:16
Definition IceCandidateInterface.h:12
Definition MediaStreamInterface.h:18
Definition MediaStreamTrackInterface.h:11
Definition PeerConnectionInterface.h:44
static MCAPI ::std::string_view AsString(::webrtc::PeerConnectionInterface::SignalingState)
Definition RTCError.h:10
Definition RTCStatsCollectorCallback.h:16
Definition RefCountInterface.h:10
Definition SessionDescriptionInterface.h:18
Definition SetSessionDescriptionObserver.h:15
Definition StatsObserver.h:15
Definition scoped_refptr.h:8
Definition Alias.h:14
Definition BandwidthEstimationSettings.h:7
Definition BitrateSettings.h:7
Definition DataChannelInit.h:7
Definition PeerConnectionInterface.h:95
MCAPI IceServer(::webrtc::PeerConnectionInterface::IceServer const &)
MCAPI void * $ctor(::webrtc::PeerConnectionInterface::IceServer const &)
MCAPI::webrtc::PeerConnectionInterface::IceServer & operator=(::webrtc::PeerConnectionInterface::IceServer const &)
MCAPI bool operator==(::webrtc::PeerConnectionInterface::IceServer const &) const
Definition PeerConnectionInterface.h:172
Definition PeerConnectionInterface.h:193
MCAPI bool operator!=(::webrtc::PeerConnectionInterface::RTCConfiguration const &) const
MCAPI::webrtc::PeerConnectionInterface::RTCConfiguration & operator=(::webrtc::PeerConnectionInterface::RTCConfiguration const &)
MCAPI bool operator==(::webrtc::PeerConnectionInterface::RTCConfiguration const &) const
MCAPI void * $ctor(::webrtc::PeerConnectionInterface::RTCConfiguration const &)
MCAPI RTCConfiguration(::webrtc::PeerConnectionInterface::RTCConfiguration const &)
Definition PeerConnectionInterface.h:279
Definition RtpTransceiverInit.h:7