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
61 virtual ~MediaContentDescription() = default;
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);
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 MCAPI void AddCodecs(::std::vector<::cricket::Codec> const&);
104
105 MCAPI void AddRtpHeaderExtension(::webrtc::RtpExtension const&);
106
107 MCAPI void AddStream(::cricket::StreamParams const&);
108
110
112
113 MCAPI void set_extmap_allow_mixed_enum(::cricket::MediaContentDescription::ExtmapAllowMixed);
114
115 MCAPI void set_receive_rids(::std::vector<::cricket::RidDescription> const&);
116
117 MCAPI void set_simulcast_description(::cricket::SimulcastDescription const&);
118 // NOLINTEND
119
120public:
121 // constructor thunks
122 // NOLINTBEGIN
123 MCAPI void* $ctor();
124
125 MCAPI void* $ctor(::cricket::MediaContentDescription const&);
126 // NOLINTEND
127
128public:
129 // destructor thunk
130 // NOLINTBEGIN
131
132 // NOLINTEND
133
134public:
135 // virtual function thunks
136 // NOLINTBEGIN
137
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCAPI static void** $vftable();
144 // NOLINTEND
145};
146
147} // namespace cricket
Definition MediaContentDescription.h:23
Definition SimulcastDescription.h:7
Definition StreamParams.h:12
Definition Alias.h:14
Definition RtpExtension.h:7