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 // prevent constructor by default
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface>> AddTrack(
63 ::std::vector<::std::string> const&,
64 ::std::vector<::webrtc::RtpEncodingParameters> const*
65 );
66
67 MCNAPI bool ConfiguredForMedia() const;
68
69 MCNAPI ::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>
71
72 MCNAPI bool GetLocalCandidateMediaIndex(::std::string const&, int*);
73
74 MCNAPI ::webrtc::RTCError
76
77 MCNAPI ::webrtc::PeerConnection::InitializePortAllocatorResult InitializePortAllocator_n(
78 ::std::set<::rtc::SocketAddress> const&,
79 ::std::vector<::cricket::RelayServerConfig> const&,
80 ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const&,
82 );
83
84 MCNAPI ::std::function<void(::rtc::CopyOnWriteBuffer const&, int64)> InitializeRtcpCallback();
85
86 MCNAPI ::webrtc::JsepTransportController* InitializeTransportController_n(
89 );
90
92
93 MCNAPI void OnIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface>);
94
95 MCNAPI void OnIceCandidateError(::std::string const&, int, ::std::string const&, int, ::std::string const&);
96
97 MCNAPI void OnIceCandidatesRemoved(::std::vector<::cricket::Candidate> const&);
98
99 MCNAPI void OnIceGatheringChange(::webrtc::PeerConnectionInterface::IceGatheringState);
100
102
104
106
107 MCNAPI void
108 OnTransportControllerCandidatesGathered(::std::string const&, ::std::vector<::cricket::Candidate> const&);
109
110 MCNAPI void OnTransportControllerCandidatesRemoved(::std::vector<::cricket::Candidate> const&);
111
112 MCNAPI void OnTransportControllerConnectionState(::cricket::IceConnectionState);
113
114 MCNAPI void OnTransportControllerDtlsHandshakeError(::rtc::SSLHandshakeError);
115
116 MCNAPI void OnTransportControllerGatheringState(::cricket::IceGatheringState);
117
122 bool,
123 ::std::unique_ptr<::webrtc::Call>,
125 bool
126 );
127
129 ::std::set<::rtc::SocketAddress> const&,
130 ::std::vector<::cricket::RelayServerConfig> const&,
131 ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const&,
132 ::webrtc::PeerConnectionInterface::IceTransportsType,
133 int,
134 ::webrtc::PortPrunePolicy,
136 ::std::optional<int>,
137 bool
138 );
139
141
143
145
148 );
149
150 MCNAPI void ReportUsagePattern() const;
151
152 MCNAPI void SetConnectionState(::webrtc::PeerConnectionInterface::PeerConnectionState);
153
154 MCNAPI void SetSctpTransportName(::std::string);
155
156 MCNAPI void SetStandardizedIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState);
157
158 MCNAPI ::std::optional<::std::string> SetupDataChannelTransport_n(::std::string_view);
159
160 MCNAPI bool StartRtcEventLog_w(::std::unique_ptr<::webrtc::RtcEventLogOutput>, int64);
161
162 MCNAPI void StopRtcEventLog_w();
163
165 // NOLINTEND
166
167public:
168 // static functions
169 // NOLINTBEGIN
170 MCNAPI static ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnection>> Create(
174 ::std::unique_ptr<::webrtc::Call>,
177 );
178
180
181 MCNAPI static void
182 ReportNegotiatedCiphers(bool, ::cricket::TransportStats const&, ::std::set<::cricket::MediaType> const&);
183 // NOLINTEND
184
185public:
186 // constructor thunks
187 // NOLINTBEGIN
188 MCNAPI void* $ctor(
192 bool,
193 ::std::unique_ptr<::webrtc::Call>,
195 bool
196 );
197 // NOLINTEND
198
199public:
200 // vftables
201 // NOLINTBEGIN
202 MCNAPI static void** $vftable();
203
205
207 // NOLINTEND
208};
209
210} // namespace webrtc
Definition Candidate.h:15
Definition CopyOnWriteBuffer.h:11
Definition Environment.h:7
Definition PeerConnectionFactoryInterface.h:38
Definition PeerConnection.h:44
MCAPI PeerConnection(::webrtc::Environment const &, ::webrtc::scoped_refptr<::webrtc::ConnectionContext >, ::webrtc::PeerConnectionFactoryInterface::Options const &, bool, ::std::unique_ptr<::webrtc::Call >, ::webrtc::PeerConnectionDependencies &, bool)
MCAPI::webrtc::PeerConnection::InitializePortAllocatorResult 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 &)
MCAPI void ReportIceCandidateCollected(::cricket::Candidate const &)
MCAPI void OnIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface >)
MCAPI ::std::function< void(::rtc::CopyOnWriteBuffer const &, int64)> InitializeRtcpCallback()
MCAPI bool StartRtcEventLog_w(::std::unique_ptr<::webrtc::RtcEventLogOutput >, int64)
MCAPI void OnTransportControllerCandidateError(::cricket::IceCandidateErrorEvent const &)
MCAPI void * $ctor(::webrtc::Environment const &, ::webrtc::scoped_refptr<::webrtc::ConnectionContext >, ::webrtc::PeerConnectionFactoryInterface::Options const &, bool, ::std::unique_ptr<::webrtc::Call >, ::webrtc::PeerConnectionDependencies &, bool)
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::RtpSenderInterface > > AddTrack(::webrtc::scoped_refptr<::webrtc::MediaStreamTrackInterface >, ::std::vector<::std::string > const &, ::std::vector<::webrtc::RtpEncodingParameters > const *)
MCAPI void ReportUsagePattern() const
MCAPI bool ConfiguredForMedia() const
MCAPI void TeardownDataChannelTransport_n(::webrtc::RTCError)
MCAPI bool ReconfigurePortAllocator_n(::std::set<::rtc::SocketAddress > const &, ::std::vector<::cricket::RelayServerConfig > const &, ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress > > const &, ::webrtc::PeerConnectionInterface::IceTransportsType, int, ::webrtc::PortPrunePolicy, ::webrtc::TurnCustomizer *, ::std::optional< int >, bool)
MCAPI void ReportTransportStats(::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver > > >)
static MCAPI void ReportNegotiatedCiphers(bool, ::cricket::TransportStats const &, ::std::set<::cricket::MediaType > const &)
MCAPI void OnIceGatheringChange(::webrtc::PeerConnectionInterface::IceGatheringState)
static MCAPI void ** $vftableForPeerConnectionSdpMethods()
MCAPI void StopRtcEventLog_w()
MCAPI ::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver > > FindTransceiverBySender(::webrtc::scoped_refptr<::webrtc::RtpSenderInterface >)
static MCAPI void ** $vftable()
MCAPI void OnTransportControllerCandidatesRemoved(::std::vector<::cricket::Candidate > const &)
MCAPI bool GetLocalCandidateMediaIndex(::std::string const &, int *)
MCAPI void SetSctpTransportName(::std::string)
MCAPI void OnTransportControllerGatheringState(::cricket::IceGatheringState)
MCAPI void OnTransportControllerConnectionState(::cricket::IceConnectionState)
MCAPI void ReportRemoteIceCandidateAdded(::cricket::Candidate const &)
MCAPI ::std::optional<::std::string > SetupDataChannelTransport_n(::std::string_view)
MCAPI void OnIceCandidateError(::std::string const &, int, ::std::string const &, int, ::std::string const &)
static MCAPI void ** $vftableForPeerConnectionInterface()
static MCAPI void ReportBestConnectionState(::cricket::TransportStats const &)
MCAPI void OnSelectedCandidatePairChanged(::cricket::CandidatePairChangeEvent const &)
MCAPI void ReportFirstConnectUsageMetrics()
MCAPI::webrtc::RTCError Initialize(::webrtc::PeerConnectionInterface::RTCConfiguration const &, ::webrtc::PeerConnectionDependencies)
MCAPI void SetStandardizedIceConnectionState(::webrtc::PeerConnectionInterface::IceConnectionState)
MCAPI void OnTransportControllerCandidatesGathered(::std::string const &, ::std::vector<::cricket::Candidate > const &)
MCAPI void OnIceCandidatesRemoved(::std::vector<::cricket::Candidate > const &)
MCAPI ::std::function< void(::webrtc::RtpPacketReceived const &)> InitializeUnDemuxablePacketHandler()
MCAPI void SetConnectionState(::webrtc::PeerConnectionInterface::PeerConnectionState)
MCAPI void OnTransportControllerCandidateChanged(::cricket::CandidatePairChangeEvent const &)
static MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnection > > Create(::webrtc::Environment const &, ::webrtc::scoped_refptr<::webrtc::ConnectionContext >, ::webrtc::PeerConnectionFactoryInterface::Options const &, ::std::unique_ptr<::webrtc::Call >, ::webrtc::PeerConnectionInterface::RTCConfiguration const &, ::webrtc::PeerConnectionDependencies)
MCAPI void OnTransportControllerDtlsHandshakeError(::rtc::SSLHandshakeError)
MCAPI::webrtc::JsepTransportController * InitializeTransportController_n(::webrtc::PeerConnectionInterface::RTCConfiguration const &, ::webrtc::PeerConnectionDependencies const &)
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