LeviLamina
Loading...
Searching...
No Matches
BaseChannel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/SdpType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cricket { class MediaContentDescription; }
11namespace cricket { class MediaReceiveChannelInterface; }
12namespace cricket { class MediaSendChannelInterface; }
13namespace cricket { struct StreamParams; }
14namespace rtc { class CopyOnWriteBuffer; }
15namespace rtc { class Thread; }
16namespace rtc { class UniqueRandomIdGenerator; }
17namespace rtc { struct NetworkRoute; }
18namespace rtc { struct PacketOptions; }
19namespace rtc { struct SentPacket; }
20namespace webrtc { class TaskQueueBase; }
21namespace webrtc { struct CryptoOptions; }
22namespace webrtc { struct RtpExtension; }
23// clang-format on
24
25namespace cricket {
26
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI
32 BaseChannel(::webrtc::TaskQueueBase*, ::rtc::Thread*, ::webrtc::TaskQueueBase*, ::std::unique_ptr<::cricket::MediaSendChannelInterface>, ::std::unique_ptr<::cricket::MediaReceiveChannelInterface>, ::std::string_view, bool, ::webrtc::CryptoOptions, ::rtc::UniqueRandomIdGenerator*);
33
34 MCAPI void ChannelNotWritable_n();
35
36 MCAPI void ChannelWritable_n();
37
38 MCAPI bool ClearHandledPayloadTypes();
39
40 MCAPI bool ConnectToRtpTransport_n();
41
42 MCAPI void DisableMedia_w();
43
44 MCAPI void DisconnectFromRtpTransport_n();
45
46 MCAPI void EnableMedia_w();
47
48 MCAPI ::std::vector<::webrtc::RtpExtension>
49 GetDeduplicatedRtpHeaderExtensions(::std::vector<::webrtc::RtpExtension> const&);
50
51 MCAPI bool IsReadyToSendMedia_w() const;
52
53 MCAPI bool MaybeAddHandledPayloadType(int);
54
55 MCAPI bool
56 MaybeUpdateDemuxerAndRtpExtensions_w(bool, ::std::optional<::std::vector<::webrtc::RtpExtension>>, ::std::string&);
57
58 MCAPI void OnNetworkRouteChanged(::std::optional<::rtc::NetworkRoute>);
59
60 MCAPI void OnTransportReadyToSend(bool);
61
62 MCAPI void OnWritableState(bool);
63
64 MCAPI bool RegisterRtpDemuxerSink_w();
65
66 MCAPI bool SendPacket(bool, ::rtc::CopyOnWriteBuffer*, ::rtc::PacketOptions const&);
67
68 MCAPI bool SetPayloadTypeDemuxingEnabled_w(bool);
69
70 MCAPI void SignalSentPacket_n(::rtc::SentPacket const&);
71
72 MCAPI ::std::string ToString() const;
73
74 MCAPI bool UpdateLocalStreams_w(::std::vector<::cricket::StreamParams> const&, ::webrtc::SdpType, ::std::string&);
75
76 MCAPI bool UpdateRemoteStreams_w(::cricket::MediaContentDescription const*, ::webrtc::SdpType, ::std::string&);
77
78 MCAPI void UpdateWritableState_n();
79
80 MCAPI bool srtp_active() const;
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void*
87 $ctor(::webrtc::TaskQueueBase*, ::rtc::Thread*, ::webrtc::TaskQueueBase*, ::std::unique_ptr<::cricket::MediaSendChannelInterface>, ::std::unique_ptr<::cricket::MediaReceiveChannelInterface>, ::std::string_view, bool, ::webrtc::CryptoOptions, ::rtc::UniqueRandomIdGenerator*);
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCAPI static void** $vftableForMediaChannelNetworkInterface();
94
95 MCAPI static void** $vftableForChannelInterface();
96
97 MCAPI static void** $vftableForRtpPacketSinkInterface();
98 // NOLINTEND
99};
100
101} // namespace cricket
Definition BaseChannel.h:27
Definition MediaContentDescription.h:23
Definition CopyOnWriteBuffer.h:11
Definition Thread.h:20
Definition UniqueRandomIdGenerator.h:7
Definition TaskQueueBase.h:16
Definition PacketOptions.h:10
Definition SentPacket.h:12
Definition CryptoOptions.h:7