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 MCAPI IceServer();
113
115
116 MCAPI ::webrtc::PeerConnectionInterface::IceServer&
118
119 MCAPI bool operator==(::webrtc::PeerConnectionInterface::IceServer const&) const;
120
121 MCAPI ~IceServer();
122 // NOLINTEND
123
124 public:
125 // constructor thunks
126 // NOLINTBEGIN
127 MCAPI void* $ctor();
128
129 MCAPI void* $ctor(::webrtc::PeerConnectionInterface::IceServer const&);
130 // NOLINTEND
131
132 public:
133 // destructor thunk
134 // NOLINTBEGIN
135 MCAPI 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
250 MCAPI RTCConfiguration();
251
253
254 MCAPI bool operator!=(::webrtc::PeerConnectionInterface::RTCConfiguration const&) const;
255
256 MCAPI ::webrtc::PeerConnectionInterface::RTCConfiguration&
258
259 MCAPI bool operator==(::webrtc::PeerConnectionInterface::RTCConfiguration const&) const;
260
261 MCAPI ~RTCConfiguration();
262 // NOLINTEND
263
264 public:
265 // constructor thunks
266 // NOLINTBEGIN
267 MCAPI void* $ctor();
268
270 // NOLINTEND
271
272 public:
273 // destructor thunk
274 // NOLINTBEGIN
275 MCAPI 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>>
326 AddTrack(::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface>, ::std::vector<::std::string> const&, ::std::vector<::webrtc::RtpEncodingParameters> const&) = 0;
327
328 // vIndex: 9
329 virtual ::webrtc::RTCError RemoveTrackOrError(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>);
330
331 // vIndex: 13
332 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
334
335 // vIndex: 12
336 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
338
339 // vIndex: 11
340 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
341 AddTransceiver(::cricket::MediaType) = 0;
342
343 // vIndex: 10
344 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>>
345 AddTransceiver(::cricket::MediaType, ::webrtc::RtpTransceiverInit const&) = 0;
346
347 // vIndex: 14
348 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>
349 CreateSender(::std::string const&, ::std::string const&) = 0;
350
351 // vIndex: 15
352 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> GetSenders() const = 0;
353
354 // vIndex: 16
355 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface>> GetReceivers() const = 0;
356
357 // vIndex: 17
358 virtual ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface>> GetTransceivers() const = 0;
359
360 // vIndex: 21
361 virtual bool GetStats(
364 ::webrtc::PeerConnectionInterface::StatsOutputLevel
365 ) = 0;
366
367 // vIndex: 20
368 virtual void GetStats(::webrtc::RTCStatsCollectorCallback*) = 0;
369
370 // vIndex: 19
371 virtual void
373
374 // vIndex: 18
375 virtual void
377
378 // vIndex: 22
379 virtual void ClearStatsCache();
380
381 // vIndex: 23
382 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
383 CreateDataChannelOrError(::std::string const&, ::webrtc::DataChannelInit const*);
384
385 // vIndex: 24
386 virtual ::webrtc::scoped_refptr<::webrtc::DataChannelInterface>
387 CreateDataChannel(::std::string const&, ::webrtc::DataChannelInit const*);
388
389 // vIndex: 25
390 virtual ::webrtc::SessionDescriptionInterface const* local_description() const = 0;
391
392 // vIndex: 26
393 virtual ::webrtc::SessionDescriptionInterface const* remote_description() const = 0;
394
395 // vIndex: 27
396 virtual ::webrtc::SessionDescriptionInterface const* current_local_description() const = 0;
397
398 // vIndex: 28
399 virtual ::webrtc::SessionDescriptionInterface const* current_remote_description() const = 0;
400
401 // vIndex: 29
402 virtual ::webrtc::SessionDescriptionInterface const* pending_local_description() const = 0;
403
404 // vIndex: 30
405 virtual ::webrtc::SessionDescriptionInterface const* pending_remote_description() const = 0;
406
407 // vIndex: 31
408 virtual void RestartIce() = 0;
409
410 // vIndex: 32
411 virtual void
413
414 // vIndex: 33
415 virtual void
417
418 // vIndex: 37
419 virtual void
420 SetLocalDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::scoped_refptr<::webrtc::SetLocalDescriptionObserverInterface>);
421
422 // vIndex: 36
424
425 // vIndex: 35
426 virtual void
428
429 // vIndex: 34
430 virtual void SetLocalDescription(::webrtc::SetSessionDescriptionObserver*);
431
432 // vIndex: 39
433 virtual void
434 SetRemoteDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::scoped_refptr<::webrtc::SetRemoteDescriptionObserverInterface>) = 0;
435
436 // vIndex: 38
438
439 // vIndex: 40
440 virtual bool ShouldFireNegotiationNeededEvent(uint) = 0;
441
442 // vIndex: 41
443 virtual ::webrtc::PeerConnectionInterface::RTCConfiguration GetConfiguration() = 0;
444
445 // vIndex: 42
446 virtual ::webrtc::RTCError SetConfiguration(::webrtc::PeerConnectionInterface::RTCConfiguration const&) = 0;
447
448 // vIndex: 44
449 virtual bool AddIceCandidate(::webrtc::IceCandidateInterface const*) = 0;
450
451 // vIndex: 43
452 virtual void
453 AddIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface>, ::std::function<void(::webrtc::RTCError)>);
454
455 // vIndex: 45
456 virtual bool RemoveIceCandidates(::std::vector<::cricket::Candidate> const&) = 0;
457
458 // vIndex: 46
459 virtual ::webrtc::RTCError SetBitrate(::webrtc::BitrateSettings const&) = 0;
460
461 // vIndex: 47
462 virtual void ReconfigureBandwidthEstimation(::webrtc::BandwidthEstimationSettings const&) = 0;
463
464 // vIndex: 48
465 virtual void SetAudioPlayout(bool) = 0;
466
467 // vIndex: 49
468 virtual void SetAudioRecording(bool) = 0;
469
470 // vIndex: 50
471 virtual ::webrtc::scoped_refptr<::webrtc::DtlsTransportInterface>
472 LookupDtlsTransportByMid(::std::string const&) = 0;
473
474 // vIndex: 51
475 virtual ::webrtc::scoped_refptr<::webrtc::SctpTransportInterface> GetSctpTransport() const = 0;
476
477 // vIndex: 52
478 virtual ::webrtc::PeerConnectionInterface::SignalingState signaling_state() = 0;
479
480 // vIndex: 53
481 virtual ::webrtc::PeerConnectionInterface::IceConnectionState ice_connection_state() = 0;
482
483 // vIndex: 54
484 virtual ::webrtc::PeerConnectionInterface::IceConnectionState standardized_ice_connection_state() = 0;
485
486 // vIndex: 55
487 virtual ::webrtc::PeerConnectionInterface::PeerConnectionState peer_connection_state() = 0;
488
489 // vIndex: 56
490 virtual ::webrtc::PeerConnectionInterface::IceGatheringState ice_gathering_state() = 0;
491
492 // vIndex: 57
493 virtual ::std::optional<bool> can_trickle_ice_candidates() = 0;
494
495 // vIndex: 58
496 virtual void AddAdaptationResource(::webrtc::scoped_refptr<::webrtc::Resource>) = 0;
497
498 // vIndex: 60
499 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput>, int64) = 0;
500
501 // vIndex: 59
502 virtual bool StartRtcEventLog(::std::unique_ptr<::webrtc::RtcEventLogOutput>) = 0;
503
504 // vIndex: 61
505 virtual void StopRtcEventLog() = 0;
506
507 // vIndex: 62
508 virtual void Close() = 0;
509
510 // vIndex: 63
511 virtual ::rtc::Thread* signaling_thread() const = 0;
512
513 // vIndex: 2
514 virtual ~PeerConnectionInterface() /*override*/ = default;
515 // NOLINTEND
516
517public:
518 // static functions
519 // NOLINTBEGIN
520 MCAPI static ::std::string_view AsString(::webrtc::PeerConnectionInterface::SignalingState);
521 // NOLINTEND
522
523public:
524 // destructor thunk
525 // NOLINTBEGIN
526
527 // NOLINTEND
528
529public:
530 // virtual function thunks
531 // NOLINTBEGIN
532
533 // NOLINTEND
534};
535
536} // namespace webrtc
Definition CreateSessionDescriptionObserver.h:16
Definition IceCandidateInterface.h:12
Definition MediaStreamInterface.h:18
Definition MediaStreamTrackInterface.h:11
Definition PeerConnectionInterface.h:44
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
Definition PeerConnectionInterface.h:172
Definition PeerConnectionInterface.h:193
Definition PeerConnectionInterface.h:279
Definition RtpTransceiverInit.h:7