LeviLamina
Loading...
Searching...
No Matches
RTPSender.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/RtpRtcpInterface.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace webrtc { class RtpPacketHistory; }
11namespace webrtc { class RtpPacketSender; }
12namespace webrtc { class RtpPacketToSend; }
13namespace webrtc { struct RtpExtensionSize; }
14namespace webrtc { struct RtpState; }
15// clang-format on
16
17namespace webrtc {
18
19class RTPSender {
20public:
21 // member functions
22 // NOLINTBEGIN
23 MCAPI ::std::unique_ptr<::webrtc::RtpPacketToSend> AllocatePacket(::rtc::ArrayView<uint const>);
24
25 MCAPI ::std::unique_ptr<::webrtc::RtpPacketToSend> BuildRtxPacket(::webrtc::RtpPacketToSend const&);
26
27 MCAPI void DeregisterRtpHeaderExtension(::std::string_view);
28
29 MCAPI void EnqueuePackets(::std::vector<::std::unique_ptr<::webrtc::RtpPacketToSend>>);
30
31 MCAPI uint64 ExpectedPerPacketOverhead() const;
32
33 MCAPI uint64 FecOrPaddingPacketMaxRtpHeaderLength() const;
34
35 MCAPI ::std::vector<::std::unique_ptr<::webrtc::RtpPacketToSend>> GeneratePadding(uint64, bool, bool);
36
37 MCAPI ::webrtc::RtpState GetRtpState() const;
38
39 MCAPI ::webrtc::RtpState GetRtxRtpState() const;
40
41 MCAPI bool IsAudioConfigured() const;
42
43 MCAPI uint64 MaxRtpPacketSize() const;
44
45 MCAPI void OnReceivedAckOnRtxSsrc(int64);
46
47 MCAPI void OnReceivedAckOnSsrc(int64);
48
49 MCAPI void OnReceivedNack(::std::vector<ushort> const&, int64);
50
51 MCAPI
53
54 MCAPI int ReSendPacket(ushort);
55
56 MCAPI bool RegisterRtpHeaderExtension(::std::string_view, int);
57
58 MCAPI uint64 RtxPacketOverhead() const;
59
60 MCAPI int RtxStatus() const;
61
62 MCAPI bool SendingMedia() const;
63
64 MCAPI void SetExtmapAllowMixed(bool);
65
66 MCAPI void SetMaxRtpPacketSize(uint64);
67
68 MCAPI void SetMid(::std::string_view);
69
70 MCAPI void SetRtpState(::webrtc::RtpState const&);
71
72 MCAPI void SetRtxPayloadType(int, int);
73
74 MCAPI void SetRtxRtpState(::webrtc::RtpState const&);
75
76 MCAPI void SetRtxStatus(int);
77
78 MCAPI void SetSendingMediaStatus(bool);
79
80 MCAPI void SetTimestampOffset(uint);
81
82 MCAPI bool SupportsPadding() const;
83
84 MCAPI bool SupportsRtxPayloadPadding() const;
85
86 MCAPI uint TimestampOffset() const;
87
88 MCAPI void UpdateHeaderSizes();
89
90 MCAPI ~RTPSender();
91 // NOLINTEND
92
93public:
94 // static functions
95 // NOLINTBEGIN
96 MCAPI static ::rtc::ArrayView<::webrtc::RtpExtensionSize const> AudioExtensionSizes();
97
98 MCAPI static ::rtc::ArrayView<::webrtc::RtpExtensionSize const> FecExtensionSizes();
99
100 MCAPI static ::rtc::ArrayView<::webrtc::RtpExtensionSize const> VideoExtensionSizes();
101 // NOLINTEND
102
103public:
104 // constructor thunks
105 // NOLINTBEGIN
106 MCAPI void*
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCAPI void $dtor();
114 // NOLINTEND
115};
116
117} // namespace webrtc
Definition _HeaderOutputPredefine.h:238
Definition RTPSender.h:19
Definition RtpPacketHistory.h:18
Definition RtpPacketSender.h:12
Definition RtpPacketToSend.h:16
Definition RtpRtcpInterface.h:16
Definition RtpState.h:7