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/webrtc/PeerConnectionFactoryInterface.h"
11#include "mc/external/webrtc/PeerConnectionInterface.h"
12#include "mc/external/webrtc/PortPrunePolicy.h"
13#include "mc/external/webrtc/RTCErrorOr.h"
14#include "mc/external/webrtc/RtpTransceiverProxyWithInternal.h"
15#include "mc/external/webrtc/scoped_refptr.h"
16
17// auto generated forward declare list
18// clang-format off
19namespace cricket { class Candidate; }
20namespace cricket { struct CandidatePairChangeEvent; }
21namespace cricket { struct IceCandidateErrorEvent; }
22namespace cricket { struct RelayServerConfig; }
23namespace cricket { struct TransportStats; }
24namespace rtc { class CopyOnWriteBuffer; }
25namespace rtc { class SocketAddress; }
26namespace webrtc { class Call; }
27namespace webrtc { class ConnectionContext; }
28namespace webrtc { class Environment; }
29namespace webrtc { class IceCandidateInterface; }
30namespace webrtc { class JsepTransportController; }
31namespace webrtc { class MediaStreamTrackInterface; }
32namespace webrtc { class RTCError; }
33namespace webrtc { class RtcEventLogOutput; }
34namespace webrtc { class RtpPacketReceived; }
35namespace webrtc { class RtpSenderInterface; }
36namespace webrtc { class RtpTransceiver; }
37namespace webrtc { class TurnCustomizer; }
38namespace webrtc { struct PeerConnectionDependencies; }
39namespace webrtc { struct RtpEncodingParameters; }
40// clang-format on
41
42namespace webrtc {
43
45public:
46 // PeerConnection inner types declare
47 // clang-format off
49 // clang-format on
50
51 // PeerConnection inner types define
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>>
58 AddTrack(::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface>, ::std::vector<::std::string> const&, ::std::vector<::webrtc::RtpEncodingParameters> const*);
59
60 MCAPI bool ConfiguredForMedia() const;
61
62 MCAPI ::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>
64
65 MCAPI bool GetLocalCandidateMediaIndex(::std::string const&, int*);
66
67 MCAPI ::webrtc::RTCError
69
70 MCAPI ::webrtc::PeerConnection::InitializePortAllocatorResult
71 InitializePortAllocator_n(::std::set<::rtc::SocketAddress> const&, ::std::vector<::cricket::RelayServerConfig> const&, ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const&, ::webrtc::PeerConnectionInterface::RTCConfiguration const&);
72
73 MCAPI ::std::function<void(::rtc::CopyOnWriteBuffer const&, int64)> InitializeRtcpCallback();
74
75 MCAPI ::webrtc::JsepTransportController*
77
78 MCAPI ::std::function<void(::webrtc::RtpPacketReceived const&)> InitializeUnDemuxablePacketHandler();
79
80 MCAPI void OnIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface>);
81
82 MCAPI void OnIceCandidateError(::std::string const&, int, ::std::string const&, int, ::std::string const&);
83
84 MCAPI void OnIceCandidatesRemoved(::std::vector<::cricket::Candidate> const&);
85
86 MCAPI void OnIceGatheringChange(::webrtc::PeerConnectionInterface::IceGatheringState);
87
88 MCAPI void OnSelectedCandidatePairChanged(::cricket::CandidatePairChangeEvent const&);
89
90 MCAPI void OnTransportControllerCandidateChanged(::cricket::CandidatePairChangeEvent const&);
91
92 MCAPI void OnTransportControllerCandidateError(::cricket::IceCandidateErrorEvent const&);
93
94 MCAPI void
95 OnTransportControllerCandidatesGathered(::std::string const&, ::std::vector<::cricket::Candidate> const&);
96
97 MCAPI void OnTransportControllerCandidatesRemoved(::std::vector<::cricket::Candidate> const&);
98
99 MCAPI void OnTransportControllerConnectionState(::cricket::IceConnectionState);
100
101 MCAPI void OnTransportControllerDtlsHandshakeError(::rtc::SSLHandshakeError);
102
103 MCAPI void OnTransportControllerGatheringState(::cricket::IceGatheringState);
104
105 MCAPI PeerConnection(
109 bool,
110 ::std::unique_ptr<::webrtc::Call>,
112 bool
113 );
114
115 MCAPI bool ReconfigurePortAllocator_n(
116 ::std::set<::rtc::SocketAddress> const&,
117 ::std::vector<::cricket::RelayServerConfig> const&,
118 ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const&,
119 ::webrtc::PeerConnectionInterface::IceTransportsType,
120 int,
121 ::webrtc::PortPrunePolicy,
123 ::std::optional<int>,
124 bool
125 );
126
127 MCAPI void ReportFirstConnectUsageMetrics();
128
129 MCAPI void ReportIceCandidateCollected(::cricket::Candidate const&);
130
131 MCAPI void ReportRemoteIceCandidateAdded(::cricket::Candidate const&);
132
133 MCAPI void ReportTransportStats(::std::vector<::webrtc::scoped_refptr<
135
136 MCAPI void ReportUsagePattern() const;
137
138 MCAPI void SetConnectionState(::webrtc::PeerConnectionInterface::PeerConnectionState);
139
140 MCAPI void SetSctpTransportName(::std::string);
141
142 MCAPI void SetStandardizedIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState);
143
144 MCAPI ::std::optional<::std::string> SetupDataChannelTransport_n(::std::string_view);
145
146 MCAPI bool StartRtcEventLog_w(::std::unique_ptr<::webrtc::RtcEventLogOutput>, int64);
147
148 MCAPI void StopRtcEventLog_w();
149
150 MCAPI void TeardownDataChannelTransport_n(::webrtc::RTCError);
151 // NOLINTEND
152
153public:
154 // static functions
155 // NOLINTBEGIN
156 MCAPI static ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnection>> Create(
160 ::std::unique_ptr<::webrtc::Call>,
163 );
164
165 MCAPI static void ReportBestConnectionState(::cricket::TransportStats const&);
166
167 MCAPI static void
168 ReportNegotiatedCiphers(bool, ::cricket::TransportStats const&, ::std::set<::cricket::MediaType> const&);
169 // NOLINTEND
170
171public:
172 // constructor thunks
173 // NOLINTBEGIN
174 MCAPI void* $ctor(
178 bool,
179 ::std::unique_ptr<::webrtc::Call>,
181 bool
182 );
183 // NOLINTEND
184
185public:
186 // vftables
187 // NOLINTBEGIN
188 MCAPI static void** $vftable();
189
190 MCAPI static void** $vftableForPeerConnectionInterface();
191
192 MCAPI static void** $vftableForPeerConnectionSdpMethods();
193 // NOLINTEND
194};
195
196} // namespace webrtc
Definition Candidate.h:15
Definition CopyOnWriteBuffer.h:11
Definition Environment.h:7
Definition PeerConnectionFactoryInterface.h:38
Definition PeerConnection.h:44
Definition RTCError.h:10
Definition RtpPacketReceived.h:16
Definition RtpTransceiverProxyWithInternal.h:8
Definition TurnCustomizer.h:13
Definition scoped_refptr.h:8
Definition CandidatePairChangeEvent.h:7
Definition IceCandidateErrorEvent.h:7
Definition TransportStats.h:7
Definition PeerConnectionDependencies.h:12
Definition PeerConnectionInterface.h:193