LeviLamina
Loading...
Searching...
No Matches
SdpOfferAnswerHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/ContentSource.h"
7#include "mc/external/cricket/MediaType.h"
8#include "mc/external/rtc/SSLRole.h"
9#include "mc/external/webrtc/AddIceCandidateResult.h"
10#include "mc/external/webrtc/PeerConnectionInterface.h"
11#include "mc/external/webrtc/RTCErrorOr.h"
12#include "mc/external/webrtc/RTCErrorType.h"
13#include "mc/external/webrtc/RtpTransceiverDirection.h"
14#include "mc/external/webrtc/RtpTransceiverProxyWithInternal.h"
15#include "mc/external/webrtc/SdpType.h"
16#include "mc/external/webrtc/scoped_refptr.h"
17
18// auto generated forward declare list
19// clang-format off
20namespace cricket { class AudioContentDescription; }
21namespace cricket { class Candidate; }
22namespace cricket { class ContentGroup; }
23namespace cricket { class ContentInfo; }
24namespace cricket { class MediaEngineInterface; }
25namespace cricket { class PortAllocator; }
26namespace cricket { class SessionDescription; }
27namespace cricket { class VideoContentDescription; }
28namespace cricket { struct MediaDescriptionOptions; }
29namespace cricket { struct MediaSessionOptions; }
30namespace cricket { struct StreamParams; }
31namespace rtc { class Thread; }
32namespace webrtc { class AudioTrackInterface; }
33namespace webrtc { class ConnectionContext; }
34namespace webrtc { class CreateSessionDescriptionObserver; }
35namespace webrtc { class DataChannelController; }
36namespace webrtc { class IceCandidateInterface; }
37namespace webrtc { class JsepIceCandidate; }
38namespace webrtc { class JsepTransportController; }
39namespace webrtc { class MediaStreamInterface; }
40namespace webrtc { class PeerConnectionSdpMethods; }
41namespace webrtc { class RTCError; }
42namespace webrtc { class RtpReceiverInternal; }
43namespace webrtc { class RtpTransceiver; }
44namespace webrtc { class RtpTransceiverInterface; }
45namespace webrtc { class RtpTransmissionManager; }
46namespace webrtc { class SessionDescriptionInterface; }
47namespace webrtc { class SetLocalDescriptionObserverInterface; }
48namespace webrtc { class SetRemoteDescriptionObserverInterface; }
49namespace webrtc { class SetSessionDescriptionObserver; }
50namespace webrtc { class StreamCollection; }
51namespace webrtc { class StreamCollectionInterface; }
52namespace webrtc { class TransceiverList; }
53namespace webrtc { class VideoTrackInterface; }
54namespace webrtc { struct PeerConnectionDependencies; }
55// clang-format on
56
57namespace webrtc {
58
60public:
61 // SdpOfferAnswerHandler inner types declare
62 // clang-format off
66 // clang-format on
67
68 // SdpOfferAnswerHandler inner types define
69 enum class SessionError : uint {};
70
72 public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI void AppendIceCredentialsFromSessionDescription(::webrtc::SessionDescriptionInterface const&);
76
77 MCAPI void ClearIceCredentials();
78
79 MCAPI bool SatisfiesIceRestart(::webrtc::SessionDescriptionInterface const&) const;
80 // NOLINTEND
81 };
82
84 public:
85 // member functions
86 // NOLINTBEGIN
87 MCAPI bool HaveSessionError();
88
89 MCAPI void InvalidParam(::std::string);
90
91 MCAPI bool MaybeRollback();
92
93 MCAPI
94 RemoteDescriptionOperation(::webrtc::SdpOfferAnswerHandler*, ::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::scoped_refptr<::webrtc::SetRemoteDescriptionObserverInterface>, ::std::function<void()>);
95
96 MCAPI void SetAsSessionError();
97
98 MCAPI void SetError(::webrtc::RTCErrorType, ::std::string);
99
100 MCAPI void SignalCompletion();
101
102 MCAPI bool UpdateChannels();
103 // NOLINTEND
104
105 public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCAPI void*
109 $ctor(::webrtc::SdpOfferAnswerHandler*, ::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::scoped_refptr<::webrtc::SetRemoteDescriptionObserverInterface>, ::std::function<void()>);
110 // NOLINTEND
111 };
112
114 public:
115 // member functions
116 // NOLINTBEGIN
117 MCAPI void OnSetDescriptionComplete(::webrtc::RTCError);
118 // NOLINTEND
119
120 public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftableForSetLocalDescriptionObserverInterface();
124
125 MCAPI static void** $vftableForSetRemoteDescriptionObserverInterface();
126 // NOLINTEND
127 };
128
129public:
130 // member functions
131 // NOLINTBEGIN
132 MCAPI bool AddIceCandidate(::webrtc::IceCandidateInterface const*);
133
134 MCAPI void
135 AddIceCandidate(::std::unique_ptr<::webrtc::IceCandidateInterface>, ::std::function<void(::webrtc::RTCError)>);
136
137 MCAPI ::webrtc::AddIceCandidateResult AddIceCandidateInternal(::webrtc::IceCandidateInterface const*);
138
139 MCAPI void AddLocalIceCandidate(::webrtc::JsepIceCandidate const*);
140
141 MCAPI bool AddStream(::webrtc::MediaStreamInterface*);
142
143 MCAPI void AddUpToOneReceivingTransceiverOfType(::cricket::MediaType);
144
145 MCAPI void AllocateSctpSids();
146
147 MCAPI ::webrtc::RTCError
148 ApplyLocalDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::std::map<::std::string, ::cricket::ContentGroup const*> const&);
149
150 MCAPI void ApplyRemoteDescription(::std::unique_ptr<::webrtc::SdpOfferAnswerHandler::RemoteDescriptionOperation>);
151
152 MCAPI void ApplyRemoteDescriptionUpdateTransceiverState(::webrtc::SdpType);
153
154 MCAPI ::webrtc::RTCErrorOr<
156 AssociateTransceiver(::cricket::ContentSource, ::webrtc::SdpType, uint64, ::cricket::ContentInfo const&, ::cricket::ContentInfo const*, ::cricket::ContentInfo const*);
157
158 MCAPI void ChangeSignalingState(::webrtc::PeerConnectionInterface::SignalingState);
159
160 MCAPI bool CheckIfNegotiationIsNeeded();
161
162 MCAPI void Close();
163
164 MCAPI bool ConfiguredForMedia() const;
165
166 MCAPI void
168
169 MCAPI ::webrtc::RTCError CreateChannels(::cricket::SessionDescription const&);
170
171 MCAPI void
173
174 MCAPI void DestroyMediaChannels();
175
176 MCAPI void
178
179 MCAPI void
181
182 MCAPI void
183 DoSetLocalDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::scoped_refptr<::webrtc::SetLocalDescriptionObserverInterface>);
184
185 MCAPI void DoSetRemoteDescription(::std::unique_ptr<::webrtc::SdpOfferAnswerHandler::RemoteDescriptionOperation>);
186
187 MCAPI void EnableSending();
188
189 MCAPI bool ExpectSetLocalDescription(::webrtc::SdpType);
190
191 MCAPI bool ExpectSetRemoteDescription(::webrtc::SdpType);
192
193 MCAPI void FillInMissingRemoteMids(::cricket::SessionDescription*);
194
195 MCAPI ::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>
196 FindAvailableTransceiverToReceive(::cricket::MediaType) const;
197
198 MCAPI ::webrtc::RTCErrorOr<::cricket::ContentInfo const*>
200
201 MCAPI ::cricket::ContentInfo const*
202 FindMediaSectionForTransceiver(::webrtc::RtpTransceiver const*, ::webrtc::SessionDescriptionInterface const*) const;
203
204 MCAPI void
205 GenerateMediaDescriptionOptions(::webrtc::SessionDescriptionInterface const*, ::webrtc::RtpTransceiverDirection, ::webrtc::RtpTransceiverDirection, ::std::optional<uint64>*, ::std::optional<uint64>*, ::std::optional<uint64>*, ::cricket::MediaSessionOptions*);
206
207 MCAPI void GenerateNegotiationNeededEvent();
208
209 MCAPI ::cricket::MediaDescriptionOptions GetMediaDescriptionOptionsForActiveData(::std::string const&) const;
210
211 MCAPI ::cricket::MediaDescriptionOptions GetMediaDescriptionOptionsForRejectedData(::std::string const&) const;
212
213 MCAPI void
215
216 MCAPI void
218
219 MCAPI void
221
222 MCAPI void
224
225 MCAPI void
227
228 MCAPI void
230
231 MCAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpTransceiverProxyWithInternal<::webrtc::RtpTransceiver>>>
232 GetReceivingTransceiversOfType(::cricket::MediaType);
233
234 MCAPI ::std::string GetSessionErrorMsg();
235
236 MCAPI ::std::optional<::rtc::SSLRole> GuessSslRole() const;
237
238 MCAPI ::webrtc::RTCError HandleLegacyOfferOptions(::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions const&);
239
240 MCAPI bool HasNewIceCredentials();
241
242 MCAPI void
244
245 MCAPI bool IsUnifiedPlan() const;
246
247 MCAPI void OnAudioTrackAdded(::webrtc::AudioTrackInterface*, ::webrtc::MediaStreamInterface*);
248
249 MCAPI void OnAudioTrackRemoved(::webrtc::AudioTrackInterface*, ::webrtc::MediaStreamInterface*);
250
251 MCAPI void OnOperationsChainEmpty();
252
253 MCAPI void OnVideoTrackAdded(::webrtc::VideoTrackInterface*, ::webrtc::MediaStreamInterface*);
254
255 MCAPI void OnVideoTrackRemoved(::webrtc::VideoTrackInterface*, ::webrtc::MediaStreamInterface*);
256
257 MCAPI void
259
260 MCAPI void PrepareForShutdown();
261
262 MCAPI void
264
265 MCAPI ::webrtc::RTCError
266 PushdownMediaDescription(::webrtc::SdpType, ::cricket::ContentSource, ::std::map<::std::string, ::cricket::ContentGroup const*> const&);
267
268 MCAPI ::webrtc::RTCError PushdownTransportDescription(::cricket::ContentSource, ::webrtc::SdpType);
269
270 MCAPI bool
271 ReadyToUseRemoteCandidate(::webrtc::IceCandidateInterface const*, ::webrtc::SessionDescriptionInterface const*, bool*);
272
273 MCAPI bool RemoveIceCandidates(::std::vector<::cricket::Candidate> const&);
274
275 MCAPI void RemoveLocalIceCandidates(::std::vector<::cricket::Candidate> const&);
276
277 MCAPI void RemoveRecvDirectionFromReceivingTransceiversOfType(::cricket::MediaType);
278
279 MCAPI void
280 RemoveRemoteStreamsIfEmpty(::std::vector<::webrtc::scoped_refptr<::webrtc::MediaStreamInterface>> const&, ::std::vector<::webrtc::scoped_refptr<::webrtc::MediaStreamInterface>>*);
281
282 MCAPI void RemoveSenders(::cricket::MediaType);
283
284 MCAPI void RemoveStoppedTransceivers();
285
286 MCAPI void RemoveStream(::webrtc::MediaStreamInterface*);
287
288 MCAPI void RemoveUnusedChannels(::cricket::SessionDescription const*);
289
290 MCAPI ::webrtc::RTCError
291 ReplaceRemoteDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::SdpType, ::std::unique_ptr<::webrtc::SessionDescriptionInterface>*);
292
293 MCAPI void RestartIce();
294
295 MCAPI ::webrtc::RTCError Rollback(::webrtc::SdpType);
296
298
299 MCAPI char const* SessionErrorToString(::webrtc::SdpOfferAnswerHandler::SessionError) const;
300
301 MCAPI void
303
305
306 MCAPI void SetLocalDescription(::webrtc::SetSessionDescriptionObserver*);
307
309
310 MCAPI void
311 SetLocalDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::scoped_refptr<::webrtc::SetLocalDescriptionObserverInterface>);
312
313 MCAPI void
314 SetRemoteDescription(::std::unique_ptr<::webrtc::SessionDescriptionInterface>, ::webrtc::scoped_refptr<::webrtc::SetRemoteDescriptionObserverInterface>);
315
317
318 MCAPI void SetRemoteDescriptionPostProcess(bool);
319
320 MCAPI void SetSessionError(::webrtc::SdpOfferAnswerHandler::SessionError, ::std::string const&);
321
322 MCAPI bool ShouldFireNegotiationNeededEvent(uint);
323
324 MCAPI ::webrtc::RTCError
325 UpdateDataChannelTransport(::cricket::ContentSource, ::cricket::ContentInfo const&, ::cricket::ContentGroup const*);
326
327 MCAPI void UpdateEndedRemoteMediaStreams();
328
329 MCAPI void UpdateLocalSenders(::std::vector<::cricket::StreamParams> const&, ::cricket::MediaType);
330
331 MCAPI void UpdateNegotiationNeeded();
332
333 MCAPI bool
334 UpdatePayloadTypeDemuxingState(::cricket::ContentSource, ::std::map<::std::string, ::cricket::ContentGroup const*> const&);
335
336 MCAPI void
337 UpdateRemoteSendersList(::std::vector<::cricket::StreamParams> const&, bool, ::cricket::MediaType, ::webrtc::StreamCollection*);
338
339 MCAPI ::webrtc::RTCError
340 UpdateSessionState(::webrtc::SdpType, ::cricket::ContentSource, ::cricket::SessionDescription const*, ::std::map<::std::string, ::cricket::ContentGroup const*> const&);
341
342 MCAPI ::webrtc::RTCError
344
345 MCAPI ::webrtc::RTCError
346 UpdateTransceiversAndDataChannels(::cricket::ContentSource, ::webrtc::SessionDescriptionInterface const&, ::webrtc::SessionDescriptionInterface const*, ::webrtc::SessionDescriptionInterface const*, ::std::map<::std::string, ::cricket::ContentGroup const*> const&);
347
348 MCAPI bool UseCandidate(::webrtc::IceCandidateInterface const*);
349
350 MCAPI bool UseCandidatesInRemoteDescription();
351
352 MCAPI ::webrtc::RTCError
353 ValidateSessionDescription(::webrtc::SessionDescriptionInterface const*, ::cricket::ContentSource, ::std::map<::std::string, ::cricket::ContentGroup const*> const&);
354
355 MCAPI ::webrtc::DataChannelController* data_channel_controller();
356
357 MCAPI ::std::optional<bool> is_caller() const;
358
359 MCAPI ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> local_streams();
360
361 MCAPI ::cricket::MediaEngineInterface* media_engine() const;
362
363 MCAPI ::rtc::Thread* network_thread() const;
364
365 MCAPI ::cricket::PortAllocator* port_allocator();
366
367 MCAPI ::webrtc::scoped_refptr<::webrtc::StreamCollectionInterface> remote_streams();
368
369 MCAPI ::webrtc::RtpTransmissionManager* rtp_manager();
370
371 MCAPI ::webrtc::TransceiverList const* transceivers() const;
372
373 MCAPI ::webrtc::TransceiverList* transceivers();
374
375 MCAPI ::webrtc::JsepTransportController* transport_controller_n();
376
377 MCAPI ::webrtc::JsepTransportController const* transport_controller_s() const;
378
379 MCAPI ::webrtc::JsepTransportController* transport_controller_s();
380 // NOLINTEND
381
382public:
383 // static functions
384 // NOLINTBEGIN
385 MCAPI static ::std::unique_ptr<::webrtc::SdpOfferAnswerHandler>
387 // NOLINTEND
388
389public:
390 // constructor thunks
391 // NOLINTBEGIN
393 // NOLINTEND
394
395public:
396 // vftables
397 // NOLINTBEGIN
398 MCAPI static void** $vftable();
399 // NOLINTEND
400};
401
402} // namespace webrtc
Definition AudioContentDescription.h:11
Definition ContentGroup.h:7
Definition ContentInfo.h:12
Definition SessionDescription.h:18
Definition VideoContentDescription.h:11
Definition AudioTrackInterface.h:18
Definition ConnectionContext.h:17
Definition CreateSessionDescriptionObserver.h:16
Definition IceCandidateInterface.h:12
Definition JsepIceCandidate.h:13
Definition MediaStreamInterface.h:18
Definition PeerConnectionSdpMethods.h:7
Definition RTCError.h:10
Definition RtpTransceiverProxyWithInternal.h:8
Definition RtpTransceiver.h:35
Definition SdpOfferAnswerHandler.h:59
Definition SessionDescriptionInterface.h:18
Definition SetSessionDescriptionObserver.h:15
Definition StreamCollection.h:15
Definition VideoTrackInterface.h:20
Definition scoped_refptr.h:8
Definition MediaSessionOptions.h:7
Definition PeerConnectionDependencies.h:12
Definition PeerConnectionInterface.h:193
Definition PeerConnectionInterface.h:279