LeviLamina
Loading...
Searching...
No Matches
MediaContentDescription.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/MediaType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cricket { class AudioContentDescription; }
11namespace cricket { class SctpDataContentDescription; }
12namespace cricket { class SimulcastDescription; }
13namespace cricket { class UnsupportedContentDescription; }
14namespace cricket { class VideoContentDescription; }
15namespace cricket { struct Codec; }
16namespace cricket { struct RidDescription; }
17namespace cricket { struct StreamParams; }
18namespace webrtc { struct RtpExtension; }
19// clang-format on
20
21namespace cricket {
22
24public:
25 // MediaContentDescription inner types define
26 enum class ExtmapAllowMixed : int {
27 KNo = 0,
28 KSession = 1,
29 KMedia = 2,
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 // vIndex: 0
62
63 // vIndex: 1
64 virtual ::cricket::MediaType type() const = 0;
65
66 // vIndex: 3
67 virtual ::cricket::AudioContentDescription* as_audio();
68
69 // vIndex: 2
70 virtual ::cricket::AudioContentDescription const* as_audio() const;
71
72 // vIndex: 5
73 virtual ::cricket::VideoContentDescription* as_video();
74
75 // vIndex: 4
76 virtual ::cricket::VideoContentDescription const* as_video() const;
77
78 // vIndex: 7
79 virtual ::cricket::SctpDataContentDescription* as_sctp();
80
81 // vIndex: 6
82 virtual ::cricket::SctpDataContentDescription const* as_sctp() const;
83
84 // vIndex: 9
85 virtual ::cricket::UnsupportedContentDescription* as_unsupported();
86
87 // vIndex: 8
88 virtual ::cricket::UnsupportedContentDescription const* as_unsupported() const;
89
90 // vIndex: 10
91 virtual void set_protocol(::std::string_view protocol);
92
93 // vIndex: 11
94 virtual bool has_codecs() const;
95
96 // vIndex: 12
97 virtual ::cricket::MediaContentDescription* CloneInternal() const = 0;
98 // NOLINTEND
99
100public:
101 // member functions
102 // NOLINTBEGIN
103 MCNAPI void AddCodecs(::std::vector<::cricket::Codec> const& codecs);
104
106
107 MCNAPI void AddStream(::cricket::StreamParams const& stream);
108
110
112
113 MCNAPI void
114 set_extmap_allow_mixed_enum(::cricket::MediaContentDescription::ExtmapAllowMixed new_extmap_allow_mixed);
115
116 MCNAPI void set_receive_rids(::std::vector<::cricket::RidDescription> const& rids);
117
119 // NOLINTEND
120
121public:
122 // constructor thunks
123 // NOLINTBEGIN
124 MCNAPI void* $ctor();
125
127 // NOLINTEND
128
129public:
130 // destructor thunk
131 // NOLINTBEGIN
132 MCNAPI void $dtor();
133 // NOLINTEND
134
135public:
136 // virtual function thunks
137 // NOLINTBEGIN
138 MCNAPI ::cricket::AudioContentDescription* $as_audio();
139
140 MCNAPI ::cricket::AudioContentDescription const* $as_audio() const;
141
142 MCNAPI ::cricket::VideoContentDescription* $as_video();
143
144 MCNAPI ::cricket::VideoContentDescription const* $as_video() const;
145
146 MCNAPI ::cricket::SctpDataContentDescription* $as_sctp();
147
148 MCNAPI ::cricket::SctpDataContentDescription const* $as_sctp() const;
149
150 MCNAPI ::cricket::UnsupportedContentDescription* $as_unsupported();
151
152 MCNAPI ::cricket::UnsupportedContentDescription const* $as_unsupported() const;
153
154 MCNAPI void $set_protocol(::std::string_view protocol);
155
156 MCNAPI bool $has_codecs() const;
157 // NOLINTEND
158
159public:
160 // vftables
161 // NOLINTBEGIN
162 MCNAPI static void** $vftable();
163 // NOLINTEND
164};
165
166} // namespace cricket
Definition MediaContentDescription.h:23
MCAPI::cricket::UnsupportedContentDescription * $as_unsupported()
MCAPI::cricket::VideoContentDescription const * $as_video() const
MCAPI::cricket::AudioContentDescription * $as_audio()
static MCAPI void ** $vftable()
MCAPI bool $has_codecs() const
MCAPI void * $ctor(::cricket::MediaContentDescription const &)
MCAPI::cricket::SctpDataContentDescription const * $as_sctp() const
MCAPI MediaContentDescription(::cricket::MediaContentDescription const &)
MCAPI void $set_protocol(::std::string_view protocol)
MCAPI void set_simulcast_description(::cricket::SimulcastDescription const &simulcast)
MCAPI void AddRtpHeaderExtension(::webrtc::RtpExtension const &ext)
MCAPI::cricket::SctpDataContentDescription * $as_sctp()
MCAPI::cricket::UnsupportedContentDescription const * $as_unsupported() const
MCAPI::cricket::AudioContentDescription const * $as_audio() const
MCAPI void AddCodecs(::std::vector<::cricket::Codec > const &codecs)
MCAPI void set_receive_rids(::std::vector<::cricket::RidDescription > const &rids)
MCAPI::cricket::VideoContentDescription * $as_video()
MCAPI void AddStream(::cricket::StreamParams const &stream)
MCAPI void set_extmap_allow_mixed_enum(::cricket::MediaContentDescription::ExtmapAllowMixed new_extmap_allow_mixed)
Definition SimulcastDescription.h:7
Definition StreamParams.h:12
Definition Alias.h:14
Definition RtpExtension.h:7