LeviLamina
Loading...
Searching...
No Matches
RtpTransceiver.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/ArrayView.h"
7#include "mc/external/webrtc/MediaType.h"
8#include "mc/external/webrtc/RtpReceiverProxyWithInternal.h"
9#include "mc/external/webrtc/RtpSenderProxyWithInternal.h"
10#include "mc/external/webrtc/RtpTransceiverDirection.h"
11#include "mc/external/webrtc/RtpTransceiverInterface.h"
12#include "mc/external/webrtc/SdpType.h"
13#include "mc/external/webrtc/scoped_refptr.h"
14
15// auto generated forward declare list
16// clang-format off
17namespace webrtc { class Call; }
18namespace webrtc { class ChannelInterface; }
19namespace webrtc { class CodecLookupHelper; }
20namespace webrtc { class ConnectionContext; }
21namespace webrtc { class Environment; }
22namespace webrtc { class MediaContentDescription; }
23namespace webrtc { class RTCError; }
24namespace webrtc { class RtpReceiverInterface; }
25namespace webrtc { class RtpReceiverInternal; }
26namespace webrtc { class RtpSenderInterface; }
27namespace webrtc { class RtpSenderInternal; }
28namespace webrtc { class RtpTransportInternal; }
29namespace webrtc { class VideoBitrateAllocatorFactory; }
30namespace webrtc { struct AudioOptions; }
31namespace webrtc { struct CryptoOptions; }
32namespace webrtc { struct MediaConfig; }
33namespace webrtc { struct RtpCodecCapability; }
34namespace webrtc { struct RtpHeaderExtensionCapability; }
35namespace webrtc { struct VideoOptions; }
36// clang-format on
37
38namespace webrtc {
39
40class RtpTransceiver : public ::webrtc::RtpTransceiverInterface {
41public:
42 // member variables
43 // NOLINTBEGIN
72 // NOLINTEND
73
74public:
75 // prevent constructor by default
76 RtpTransceiver& operator=(RtpTransceiver const&);
77 RtpTransceiver(RtpTransceiver const&);
78 RtpTransceiver();
79
80public:
81 // virtual functions
82 // NOLINTBEGIN
83 virtual ~RtpTransceiver() /*override*/;
84
85 virtual ::webrtc::MediaType media_type() const /*override*/;
86
87 virtual ::std::optional<::std::string> mid() const /*override*/;
88
89 virtual ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface> sender() const /*override*/;
90
91 virtual ::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface> receiver() const /*override*/;
92
93 virtual bool stopped() const /*override*/;
94
95 virtual bool stopping() const /*override*/;
96
97 virtual ::webrtc::RtpTransceiverDirection direction() const /*override*/;
98
99 virtual ::webrtc::RTCError SetDirectionWithError(::webrtc::RtpTransceiverDirection new_direction) /*override*/;
100
101 virtual ::std::optional<::webrtc::RtpTransceiverDirection> current_direction() const /*override*/;
102
103 virtual ::std::optional<::webrtc::RtpTransceiverDirection> fired_direction() const /*override*/;
104
105 virtual ::webrtc::RTCError StopStandard() /*override*/;
106
107 virtual void StopInternal() /*override*/;
108
109 virtual ::webrtc::RTCError
110 SetCodecPreferences(::webrtc::ArrayView<::webrtc::RtpCodecCapability> codec_capabilities) /*override*/;
111
112 virtual ::std::vector<::webrtc::RtpCodecCapability> codec_preferences() const /*override*/;
113
114 virtual ::std::vector<::webrtc::RtpHeaderExtensionCapability> GetHeaderExtensionsToNegotiate() const /*override*/;
115
116 virtual ::std::vector<::webrtc::RtpHeaderExtensionCapability> GetNegotiatedHeaderExtensions() const /*override*/;
117
118 virtual ::webrtc::RTCError SetHeaderExtensionsToNegotiate(
120 ) /*override*/;
121 // NOLINTEND
122
123public:
124 // member functions
125 // NOLINTBEGIN
126 MCNAPI void AddReceiver(
128 );
129
130 MCNAPI void
132
133 MCNAPI void ClearChannel();
134
135 MCNAPI ::webrtc::RTCError CreateChannel(
136 ::std::string_view mid,
137 ::webrtc::Call* call_ptr,
138 ::webrtc::MediaConfig const& media_config,
139 bool srtp_required,
140 ::webrtc::CryptoOptions crypto_options,
141 ::webrtc::AudioOptions const& audio_options,
142 ::webrtc::VideoOptions const& video_options,
143 ::webrtc::VideoBitrateAllocatorFactory* video_bitrate_allocator_factory,
144 ::std::function<::webrtc::RtpTransportInternal*(::std::string_view)> transport_lookup
145 );
146
147 MCNAPI void OnNegotiationUpdate(::webrtc::SdpType sdp_type, ::webrtc::MediaContentDescription const* content);
148
150
152
154 ::webrtc::Environment const& env,
155 ::webrtc::MediaType media_type,
157 ::webrtc::CodecLookupHelper* codec_lookup_helper
158 );
159
161 ::webrtc::Environment const& env,
165 ::webrtc::CodecLookupHelper* codec_lookup_helper,
166 ::std::vector<::webrtc::RtpHeaderExtensionCapability> header_extensions_to_negotiate,
167 ::std::function<void()> on_negotiation_needed
168 );
169
170 MCNAPI void SetChannel(
171 ::std::unique_ptr<::webrtc::ChannelInterface> channel,
172 ::std::function<::webrtc::RtpTransportInternal*(::std::string const&)> transport_lookup
173 );
174
176
178
180
181 MCNAPI ::webrtc::RTCError UpdateCodecPreferencesCaches(::std::vector<::webrtc::RtpCodecCapability> const& codecs);
182
183 MCNAPI ::std::vector<::webrtc::RtpCodecCapability> filtered_codec_preferences() const;
184
185 MCNAPI ::webrtc::scoped_refptr<::webrtc::RtpReceiverInternal> receiver_internal() const;
186
187 MCNAPI ::webrtc::scoped_refptr<::webrtc::RtpSenderInternal> sender_internal() const;
188
189 MCNAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderProxyWithInternal<::webrtc::RtpSenderInternal>>>
190 senders() const;
191
192 MCNAPI void set_current_direction(::webrtc::RtpTransceiverDirection direction);
193
194 MCNAPI void set_fired_direction(::std::optional<::webrtc::RtpTransceiverDirection> direction);
195
196 MCNAPI void set_mid(::std::optional<::std::string> const& mid);
197 // NOLINTEND
198
199public:
200 // constructor thunks
201 // NOLINTBEGIN
202 MCNAPI void* $ctor(
203 ::webrtc::Environment const& env,
204 ::webrtc::MediaType media_type,
206 ::webrtc::CodecLookupHelper* codec_lookup_helper
207 );
208
209 MCNAPI void* $ctor(
210 ::webrtc::Environment const& env,
214 ::webrtc::CodecLookupHelper* codec_lookup_helper,
215 ::std::vector<::webrtc::RtpHeaderExtensionCapability> header_extensions_to_negotiate,
216 ::std::function<void()> on_negotiation_needed
217 );
218 // NOLINTEND
219
220public:
221 // destructor thunk
222 // NOLINTBEGIN
223 MCNAPI void $dtor();
224 // NOLINTEND
225
226public:
227 // virtual function thunks
228 // NOLINTBEGIN
229 MCNAPI ::webrtc::MediaType $media_type() const;
230
231 MCNAPI ::std::optional<::std::string> $mid() const;
232
233 MCNAPI ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface> $sender() const;
234
235 MCNAPI ::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface> $receiver() const;
236
237 MCNAPI bool $stopped() const;
238
239 MCNAPI bool $stopping() const;
240
241 MCNAPI ::webrtc::RtpTransceiverDirection $direction() const;
242
243 MCNAPI ::webrtc::RTCError $SetDirectionWithError(::webrtc::RtpTransceiverDirection new_direction);
244
245 MCNAPI ::std::optional<::webrtc::RtpTransceiverDirection> $current_direction() const;
246
247 MCNAPI ::std::optional<::webrtc::RtpTransceiverDirection> $fired_direction() const;
248
249 MCNAPI ::webrtc::RTCError $StopStandard();
250
251 MCNAPI void $StopInternal();
252
253 MCNAPI ::webrtc::RTCError
255
256 MCNAPI ::std::vector<::webrtc::RtpCodecCapability> $codec_preferences() const;
257
258 MCNAPI ::std::vector<::webrtc::RtpHeaderExtensionCapability> $GetHeaderExtensionsToNegotiate() const;
259
260 MCNAPI ::std::vector<::webrtc::RtpHeaderExtensionCapability> $GetNegotiatedHeaderExtensions() const;
261
262 MCNAPI ::webrtc::RTCError $SetHeaderExtensionsToNegotiate(
264 );
265
266
267 // NOLINTEND
268
269public:
270 // vftables
271 // NOLINTBEGIN
272 MCNAPI static void** $vftable();
273 // NOLINTEND
274};
275
276} // namespace webrtc
Definition ArrayView.h:8
Definition Call.h:36
Definition ChannelInterface.h:26
Definition CodecLookupHelper.h:13
Definition ConnectionContext.h:17
Definition Environment.h:7
Definition MediaContentDescription.h:20
Definition RTCError.h:10
Definition RtpReceiverInterface.h:25
Definition RtpReceiverInternal.h:18
Definition RtpReceiverProxyWithInternal.h:8
Definition RtpSenderInterface.h:28
Definition RtpSenderInternal.h:22
Definition RtpSenderProxyWithInternal.h:8
Definition RtpTransceiverInterface.h:23
MCAPI::webrtc::RtpTransceiverDirection $direction() const
static MCAPI void ** $vftable()
MCAPI ::webrtc::scoped_refptr<::webrtc::RtpSenderInternal > sender_internal() const
MCAPI void SetPeerConnectionClosed()
MCAPI bool RemoveSender(::webrtc::RtpSenderInterface *sender)
MCAPI::webrtc::MediaType $media_type() const
MCAPI::webrtc::RTCError $SetCodecPreferences(::webrtc::ArrayView<::webrtc::RtpCodecCapability > codec_capabilities)
MCAPI void * $ctor(::webrtc::Environment const &env, ::webrtc::MediaType media_type, ::webrtc::ConnectionContext *context, ::webrtc::CodecLookupHelper *codec_lookup_helper)
MCAPI void ClearChannel()
MCAPI ::std::optional<::webrtc::RtpTransceiverDirection > $current_direction() const
MCAPI ::webrtc::scoped_refptr<::webrtc::RtpSenderInterface > $sender() const
MCAPI void StopTransceiverProcedure()
MCAPI void * $ctor(::webrtc::Environment const &env, ::webrtc::scoped_refptr<::webrtc::RtpSenderProxyWithInternal<::webrtc::RtpSenderInternal > > sender, ::webrtc::scoped_refptr<::webrtc::RtpReceiverProxyWithInternal<::webrtc::RtpReceiverInternal > > receiver, ::webrtc::ConnectionContext *context, ::webrtc::CodecLookupHelper *codec_lookup_helper, ::std::vector<::webrtc::RtpHeaderExtensionCapability > header_extensions_to_negotiate, ::std::function< void()> on_negotiation_needed)
MCAPI::webrtc::RTCError $SetDirectionWithError(::webrtc::RtpTransceiverDirection new_direction)
MCAPI ::std::vector<::webrtc::RtpHeaderExtensionCapability > $GetNegotiatedHeaderExtensions() const
MCAPI ::webrtc::scoped_refptr<::webrtc::RtpReceiverInternal > receiver_internal() const
MCAPI void AddSender(::webrtc::scoped_refptr<::webrtc::RtpSenderProxyWithInternal<::webrtc::RtpSenderInternal > > sender)
MCAPI::webrtc::RTCError UpdateCodecPreferencesCaches(::std::vector<::webrtc::RtpCodecCapability > const &codecs)
MCAPI ::std::vector<::webrtc::RtpHeaderExtensionCapability > $GetHeaderExtensionsToNegotiate() const
MCAPI void set_current_direction(::webrtc::RtpTransceiverDirection direction)
MCAPI void $StopInternal()
MCAPI bool $stopping() const
MCAPI::webrtc::RTCError $SetHeaderExtensionsToNegotiate(::webrtc::ArrayView<::webrtc::RtpHeaderExtensionCapability const > header_extensions)
MCAPI void OnNegotiationUpdate(::webrtc::SdpType sdp_type, ::webrtc::MediaContentDescription const *content)
MCAPI void set_mid(::std::optional<::std::string > const &mid)
MCAPI void AddReceiver(::webrtc::scoped_refptr<::webrtc::RtpReceiverProxyWithInternal<::webrtc::RtpReceiverInternal > > receiver)
MCAPI void StopSendingAndReceiving()
MCAPI ::std::vector<::webrtc::scoped_refptr<::webrtc::RtpSenderProxyWithInternal<::webrtc::RtpSenderInternal > > > senders() const
MCAPI bool $stopped() const
MCAPI::webrtc::RTCError $StopStandard()
MCAPI::webrtc::RTCError CreateChannel(::std::string_view mid, ::webrtc::Call *call_ptr, ::webrtc::MediaConfig const &media_config, bool srtp_required, ::webrtc::CryptoOptions crypto_options, ::webrtc::AudioOptions const &audio_options, ::webrtc::VideoOptions const &video_options, ::webrtc::VideoBitrateAllocatorFactory *video_bitrate_allocator_factory, ::std::function<::webrtc::RtpTransportInternal *(::std::string_view)> transport_lookup)
MCAPI bool RemoveReceiver(::webrtc::RtpReceiverInterface *receiver)
MCAPI void SetChannel(::std::unique_ptr<::webrtc::ChannelInterface > channel, ::std::function<::webrtc::RtpTransportInternal *(::std::string const &)> transport_lookup)
MCAPI RtpTransceiver(::webrtc::Environment const &env, ::webrtc::scoped_refptr<::webrtc::RtpSenderProxyWithInternal<::webrtc::RtpSenderInternal > > sender, ::webrtc::scoped_refptr<::webrtc::RtpReceiverProxyWithInternal<::webrtc::RtpReceiverInternal > > receiver, ::webrtc::ConnectionContext *context, ::webrtc::CodecLookupHelper *codec_lookup_helper, ::std::vector<::webrtc::RtpHeaderExtensionCapability > header_extensions_to_negotiate, ::std::function< void()> on_negotiation_needed)
MCAPI ::std::vector<::webrtc::RtpCodecCapability > $codec_preferences() const
MCAPI ::std::vector<::webrtc::RtpCodecCapability > filtered_codec_preferences() const
MCAPI RtpTransceiver(::webrtc::Environment const &env, ::webrtc::MediaType media_type, ::webrtc::ConnectionContext *context, ::webrtc::CodecLookupHelper *codec_lookup_helper)
MCAPI ::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface > $receiver() const
MCAPI ::std::optional<::webrtc::RtpTransceiverDirection > $fired_direction() const
MCAPI void set_fired_direction(::std::optional<::webrtc::RtpTransceiverDirection > direction)
MCAPI ::std::optional<::std::string > $mid() const
Definition RtpTransportInternal.h:21
Definition VideoBitrateAllocatorFactory.h:14
Definition scoped_refptr.h:8
Definition context.h:5
Definition Alias.h:14
Definition AudioOptions.h:7
Definition CryptoOptions.h:12
Definition MediaConfig.h:7
Definition RtpCodecCapability.h:10
Definition RtpHeaderExtensionCapability.h:7
Definition VideoOptions.h:7