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/webrtc/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 webrtc { class AudioSourceInterface; }
15namespace webrtc { class AudioTrackInterface; }
16namespace webrtc { class Call; }
17namespace webrtc { class ConnectionContext; }
18namespace webrtc { class Environment; }
19namespace webrtc { class MediaStreamInterface; }
20namespace webrtc { class NetworkControllerFactoryInterface; }
21namespace webrtc { class PeerConnectionInterface; }
22namespace webrtc { class VideoTrackInterface; }
23namespace webrtc { class VideoTrackSourceInterface; }
24namespace webrtc { struct AudioOptions; }
25namespace webrtc { struct PeerConnectionDependencies; }
26namespace webrtc { struct PeerConnectionFactoryDependencies; }
27namespace webrtc { struct RtpCapabilities; }
28// clang-format on
29
30namespace webrtc {
31
32class PeerConnectionFactory : public ::webrtc::PeerConnectionFactoryInterface {
33public:
34 // member variables
35 // NOLINTBEGIN
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
51 PeerConnectionFactory& operator=(PeerConnectionFactory const&);
52 PeerConnectionFactory(PeerConnectionFactory const&);
53 PeerConnectionFactory();
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual void SetOptions(::webrtc::PeerConnectionFactoryInterface::Options const& options) /*override*/;
59
60 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>>
61 CreatePeerConnectionOrError(
64 ) /*override*/;
65
66 virtual ::webrtc::RtpCapabilities GetRtpSenderCapabilities(::webrtc::MediaType kind) const /*override*/;
67
68 virtual ::webrtc::RtpCapabilities GetRtpReceiverCapabilities(::webrtc::MediaType kind) const /*override*/;
69
70 virtual ::webrtc::scoped_refptr<::webrtc::MediaStreamInterface>
71 CreateLocalMediaStream(::std::string const& stream_id) /*override*/;
72
73 virtual ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface>
74 CreateAudioSource(::webrtc::AudioOptions const& options) /*override*/;
75
76 virtual ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface> CreateVideoTrack(
78 ::std::string_view id
79 ) /*override*/;
80
81 virtual ::webrtc::scoped_refptr<::webrtc::AudioTrackInterface>
82 CreateAudioTrack(::std::string const& id, ::webrtc::AudioSourceInterface* source) /*override*/;
83
84 virtual bool StartAecDump(::_iobuf* file, int64 max_size_bytes) /*override*/;
85
86 virtual void StopAecDump() /*override*/;
87
88 virtual ~PeerConnectionFactory() /*override*/;
89 // NOLINTEND
90
91public:
92 // member functions
93 // NOLINTBEGIN
94 MCNAPI ::std::unique_ptr<::webrtc::Call> CreateCall_w(
95 ::webrtc::Environment const& env,
97 ::std::unique_ptr<::webrtc::NetworkControllerFactoryInterface> per_call_network_controller_factory
98 );
99
101
105 );
106 // NOLINTEND
107
108public:
109 // constructor thunks
110 // NOLINTBEGIN
112
113 MCNAPI void* $ctor(
116 );
117 // NOLINTEND
118
119public:
120 // destructor thunk
121 // NOLINTBEGIN
122 MCNAPI void $dtor();
123 // NOLINTEND
124
125public:
126 // virtual function thunks
127 // NOLINTBEGIN
129
130 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>>
134 );
135
136 MCNAPI ::webrtc::RtpCapabilities $GetRtpSenderCapabilities(::webrtc::MediaType kind) const;
137
138 MCNAPI ::webrtc::RtpCapabilities $GetRtpReceiverCapabilities(::webrtc::MediaType kind) const;
139
140 MCNAPI ::webrtc::scoped_refptr<::webrtc::MediaStreamInterface>
141 $CreateLocalMediaStream(::std::string const& stream_id);
142
143 MCNAPI ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface>
145
146 MCNAPI ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface>
148
149 MCNAPI ::webrtc::scoped_refptr<::webrtc::AudioTrackInterface>
150 $CreateAudioTrack(::std::string const& id, ::webrtc::AudioSourceInterface* source);
151
152 MCNAPI bool $StartAecDump(::_iobuf* file, int64 max_size_bytes);
153
154 MCNAPI void $StopAecDump();
155
156
157 // NOLINTEND
158
159public:
160 // vftables
161 // NOLINTBEGIN
162 MCNAPI static void** $vftable();
163 // NOLINTEND
164};
165
166} // namespace webrtc
Definition AudioSourceInterface.h:16
Definition AudioTrackInterface.h:18
Definition Call.h:36
Definition ConnectionContext.h:17
Definition Environment.h:7
Definition MediaStreamInterface.h:18
Definition NetworkControllerFactoryInterface.h:14
Definition PeerConnectionFactoryInterface.h:35
Definition PeerConnectionFactoryInterface.h:27
MCAPI bool $StartAecDump(::_iobuf *file, int64 max_size_bytes)
MCAPI::webrtc::RtpCapabilities $GetRtpReceiverCapabilities(::webrtc::MediaType kind) const
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 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::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface > > $CreatePeerConnectionOrError(::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration, ::webrtc::PeerConnectionDependencies dependencies)
MCAPI ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface > $CreateAudioSource(::webrtc::AudioOptions const &options)
MCAPI ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface > $CreateVideoTrack(::webrtc::scoped_refptr<::webrtc::VideoTrackSourceInterface > source, ::std::string_view id)
MCAPI::webrtc::RtpCapabilities $GetRtpSenderCapabilities(::webrtc::MediaType kind) const
MCAPI ::std::unique_ptr<::webrtc::Call > CreateCall_w(::webrtc::Environment const &env, ::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration, ::std::unique_ptr<::webrtc::NetworkControllerFactoryInterface > per_call_network_controller_factory)
Definition PeerConnectionInterface.h:46
Definition VideoTrackInterface.h:20
Definition VideoTrackSourceInterface.h:20
Definition scoped_refptr.h:8
Definition context.h:5
Definition Alias.h:14
Definition AudioOptions.h:7
Definition PeerConnectionDependencies.h:12
Definition PeerConnectionFactoryDependencies.h:7
Definition PeerConnectionInterface.h:200
Definition RtpCapabilities.h:7