LeviLamina
Loading...
Searching...
No Matches
MediaSendChannelInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/absl/AnyInvocable.h"
7#include "mc/external/cricket/MediaType.h"
8#include "mc/external/webrtc/VideoEncoderFactory.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace cricket { class MediaChannelNetworkInterface; }
14namespace cricket { class VideoMediaSendChannelInterface; }
15namespace cricket { class VoiceMediaSendChannelInterface; }
16namespace cricket { struct Codec; }
17namespace cricket { struct StreamParams; }
18namespace rtc { struct NetworkRoute; }
19namespace rtc { struct SentPacket; }
20namespace webrtc { class FrameEncryptorInterface; }
21namespace webrtc { class FrameTransformerInterface; }
22namespace webrtc { class RTCError; }
23namespace webrtc { struct RtpParameters; }
24// clang-format on
25
26namespace cricket {
27
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 0
33 virtual ~MediaSendChannelInterface() = default;
34
35 // vIndex: 1
36 virtual ::cricket::VideoMediaSendChannelInterface* AsVideoSendChannel() = 0;
37
38 // vIndex: 2
39 virtual ::cricket::VoiceMediaSendChannelInterface* AsVoiceSendChannel() = 0;
40
41 // vIndex: 3
42 virtual ::cricket::MediaType media_type() const = 0;
43
44 // vIndex: 4
45 virtual ::std::optional<::cricket::Codec> GetSendCodec() const = 0;
46
47 // vIndex: 5
48 virtual bool AddSendStream(::cricket::StreamParams const&) = 0;
49
50 // vIndex: 6
51 virtual bool RemoveSendStream(uint) = 0;
52
53 // vIndex: 7
54 virtual void OnPacketSent(::rtc::SentPacket const&) = 0;
55
56 // vIndex: 8
57 virtual void OnReadyToSend(bool) = 0;
58
59 // vIndex: 9
60 virtual void OnNetworkRouteChanged(::std::string_view, ::rtc::NetworkRoute const&) = 0;
61
62 // vIndex: 10
63 virtual void SetInterface(::cricket::MediaChannelNetworkInterface*) = 0;
64
65 // vIndex: 11
66 virtual bool HasNetworkInterface() const = 0;
67
68 // vIndex: 12
69 virtual void SetExtmapAllowMixed(bool) = 0;
70
71 // vIndex: 13
72 virtual bool ExtmapAllowMixed() const = 0;
73
74 // vIndex: 14
75 virtual void SetFrameEncryptor(uint, ::webrtc::scoped_refptr<::webrtc::FrameEncryptorInterface>) = 0;
76
77 // vIndex: 15
78 virtual ::webrtc::RTCError
79 SetRtpSendParameters(uint, ::webrtc::RtpParameters const&, ::absl::AnyInvocable<void(::webrtc::RTCError) &&>) = 0;
80
81 // vIndex: 16
82 virtual void
83 SetEncoderToPacketizerFrameTransformer(uint, ::webrtc::scoped_refptr<::webrtc::FrameTransformerInterface>) = 0;
84
85 // vIndex: 17
86 virtual void SetEncoderSelector(uint, ::webrtc::VideoEncoderFactory::EncoderSelectorInterface*);
87
88 // vIndex: 18
89 virtual ::webrtc::RtpParameters GetRtpSendParameters(uint) const = 0;
90
91 // vIndex: 19
92 virtual bool SendCodecHasNack() const = 0;
93
94 // vIndex: 20
95 virtual void SetSsrcListChangedCallback(::absl::AnyInvocable<void(::std::set<uint> const&)>) = 0;
96
97 // vIndex: 21
98 virtual void SetSendCodecChangedCallback(::absl::AnyInvocable<void()>) = 0;
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110
111 // NOLINTEND
112};
113
114} // namespace cricket
Definition AnyInvocable.h:8
Definition MediaChannelNetworkInterface.h:16
Definition MediaSendChannelInterface.h:28
Definition RTCError.h:10
Definition scoped_refptr.h:8
Definition StreamParams.h:12
Definition NetworkRoute.h:7
Definition SentPacket.h:12
Definition RtpParameters.h:7