LeviLamina
Loading...
Searching...
No Matches
PeerConnectionFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/MediaType.h"
7#include "mc/external/webrtc/PeerConnectionFactoryInterface.h"
8#include "mc/external/webrtc/PeerConnectionInterface.h"
9#include "mc/external/webrtc/RTCErrorOr.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cricket { struct AudioOptions; }
15namespace webrtc { class AudioSourceInterface; }
16namespace webrtc { class AudioTrackInterface; }
17namespace webrtc { class Call; }
18namespace webrtc { class ConnectionContext; }
19namespace webrtc { class Environment; }
20namespace webrtc { class MediaStreamInterface; }
21namespace webrtc { class PeerConnectionInterface; }
22namespace webrtc { class VideoTrackInterface; }
23namespace webrtc { class VideoTrackSourceInterface; }
24namespace webrtc { struct PeerConnectionDependencies; }
25namespace webrtc { struct PeerConnectionFactoryDependencies; }
26namespace webrtc { struct RtpCapabilities; }
27// clang-format on
28
29namespace webrtc {
30
31class PeerConnectionFactory : public ::webrtc::PeerConnectionFactoryInterface {
32public:
33 // member variables
34 // NOLINTBEGIN
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 PeerConnectionFactory& operator=(PeerConnectionFactory const&);
50 PeerConnectionFactory(PeerConnectionFactory const&);
51 PeerConnectionFactory();
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual void SetOptions(::webrtc::PeerConnectionFactoryInterface::Options const& options) /*override*/;
57
58 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>>
59 CreatePeerConnectionOrError(
62 ) /*override*/;
63
64 virtual ::webrtc::RtpCapabilities GetRtpSenderCapabilities(::cricket::MediaType kind) const /*override*/;
65
66 virtual ::webrtc::RtpCapabilities GetRtpReceiverCapabilities(::cricket::MediaType kind) const /*override*/;
67
68 virtual ::webrtc::scoped_refptr<::webrtc::MediaStreamInterface>
69 CreateLocalMediaStream(::std::string const& stream_id) /*override*/;
70
71 virtual ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface>
72 CreateAudioSource(::cricket::AudioOptions const& options) /*override*/;
73
74 virtual ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface> CreateVideoTrack(
76 ::std::string_view id
77 ) /*override*/;
78
79 virtual ::webrtc::scoped_refptr<::webrtc::AudioTrackInterface>
80 CreateAudioTrack(::std::string const& id, ::webrtc::AudioSourceInterface* source) /*override*/;
81
82 virtual bool StartAecDump(::_iobuf* file, int64 max_size_bytes) /*override*/;
83
84 virtual void StopAecDump() /*override*/;
85
86 virtual ~PeerConnectionFactory() /*override*/;
87 // NOLINTEND
88
89public:
90 // member functions
91 // NOLINTBEGIN
92 MCNAPI ::std::unique_ptr<::webrtc::Call> CreateCall_w(
93 ::webrtc::Environment const& env,
95 );
96
98
102 );
103 // NOLINTEND
104
105public:
106 // constructor thunks
107 // NOLINTBEGIN
109
110 MCNAPI void* $ctor(
113 );
114 // NOLINTEND
115
116public:
117 // destructor thunk
118 // NOLINTBEGIN
119 MCNAPI void $dtor();
120 // NOLINTEND
121
122public:
123 // virtual function thunks
124 // NOLINTBEGIN
126
127 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>>
131 );
132
133 MCNAPI ::webrtc::RtpCapabilities $GetRtpSenderCapabilities(::cricket::MediaType kind) const;
134
135 MCNAPI ::webrtc::RtpCapabilities $GetRtpReceiverCapabilities(::cricket::MediaType kind) const;
136
137 MCNAPI ::webrtc::scoped_refptr<::webrtc::MediaStreamInterface>
138 $CreateLocalMediaStream(::std::string const& stream_id);
139
140 MCNAPI ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface>
142
143 MCNAPI ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface>
145
146 MCNAPI ::webrtc::scoped_refptr<::webrtc::AudioTrackInterface>
147 $CreateAudioTrack(::std::string const& id, ::webrtc::AudioSourceInterface* source);
148
149 MCNAPI bool $StartAecDump(::_iobuf* file, int64 max_size_bytes);
150
151 MCNAPI void $StopAecDump();
152
153
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCNAPI static void** $vftable();
160 // NOLINTEND
161};
162
163} // namespace webrtc
Definition AudioSourceInterface.h:16
Definition AudioTrackInterface.h:18
Definition Call.h:35
Definition ConnectionContext.h:17
Definition Environment.h:7
Definition MediaStreamInterface.h:18
Definition PeerConnectionFactoryInterface.h:38
Definition PeerConnectionFactoryInterface.h:30
MCAPI ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface > $CreateAudioSource(::cricket::AudioOptions const &options)
MCAPI bool $StartAecDump(::_iobuf *file, int64 max_size_bytes)
MCAPI ::std::unique_ptr<::webrtc::Call > CreateCall_w(::webrtc::Environment const &env, ::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration)
MCAPI PeerConnectionFactory(::webrtc::PeerConnectionFactoryDependencies dependencies)
MCAPI ::webrtc::scoped_refptr<::webrtc::AudioTrackInterface > $CreateAudioTrack(::std::string const &id, ::webrtc::AudioSourceInterface *source)
MCAPI void * $ctor(::webrtc::scoped_refptr<::webrtc::ConnectionContext > context, ::webrtc::PeerConnectionFactoryDependencies *dependencies)
MCAPI::webrtc::RtpCapabilities $GetRtpReceiverCapabilities(::cricket::MediaType kind) const
MCAPI void * $ctor(::webrtc::PeerConnectionFactoryDependencies dependencies)
MCAPI PeerConnectionFactory(::webrtc::scoped_refptr<::webrtc::ConnectionContext > context, ::webrtc::PeerConnectionFactoryDependencies *dependencies)
static MCAPI void ** $vftable()
MCAPI void $SetOptions(::webrtc::PeerConnectionFactoryInterface::Options const &options)
MCAPI ::webrtc::scoped_refptr<::webrtc::MediaStreamInterface > $CreateLocalMediaStream(::std::string const &stream_id)
MCAPI::webrtc::RtpCapabilities $GetRtpSenderCapabilities(::cricket::MediaType kind) const
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface > > $CreatePeerConnectionOrError(::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration, ::webrtc::PeerConnectionDependencies dependencies)
MCAPI ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface > $CreateVideoTrack(::webrtc::scoped_refptr<::webrtc::VideoTrackSourceInterface > source, ::std::string_view id)
Definition PeerConnectionInterface.h:44
Definition VideoTrackInterface.h:20
Definition VideoTrackSourceInterface.h:20
Definition scoped_refptr.h:8
Definition context.h:5
Definition AudioOptions.h:7
Definition Alias.h:14
Definition PeerConnectionDependencies.h:12
Definition PeerConnectionFactoryDependencies.h:7
Definition PeerConnectionInterface.h:198
Definition RtpCapabilities.h:7