LeviLamina
Loading...
Searching...
No Matches
PeerConnectionFactoryInterface.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/PeerConnectionInterface.h"
8#include "mc/external/webrtc/RTCErrorOr.h"
9#include "mc/external/webrtc/RefCountInterface.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cricket { class PortAllocator; }
15namespace cricket { struct AudioOptions; }
16namespace rtc { class RTCCertificateGeneratorInterface; }
17namespace webrtc { class AudioSourceInterface; }
18namespace webrtc { class AudioTrackInterface; }
19namespace webrtc { class MediaStreamInterface; }
20namespace webrtc { class PeerConnectionInterface; }
21namespace webrtc { class PeerConnectionObserver; }
22namespace webrtc { class VideoTrackInterface; }
23namespace webrtc { class VideoTrackSourceInterface; }
24namespace webrtc { struct PeerConnectionDependencies; }
25namespace webrtc { struct RtpCapabilities; }
26// clang-format on
27
28namespace webrtc {
29
31public:
32 // PeerConnectionFactoryInterface inner types declare
33 // clang-format off
34 class Options;
35 // clang-format on
36
37 // PeerConnectionFactoryInterface inner types define
38 class Options {
39 public:
40 // member variables
41 // NOLINTBEGIN
47 // NOLINTEND
48
49 public:
50 // prevent constructor by default
51 Options& operator=(Options const&);
52 Options(Options const&);
53 Options();
54
55 public:
56 // member functions
57 // NOLINTBEGIN
58 MCNAPI ~Options();
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCNAPI void $dtor();
65 // NOLINTEND
66 };
67
68public:
69 // virtual functions
70 // NOLINTBEGIN
71 virtual void SetOptions(::webrtc::PeerConnectionFactoryInterface::Options const&) = 0;
72
73 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>>
74 CreatePeerConnectionOrError(
77 );
78
79 virtual ::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface> CreatePeerConnection(
82 );
83
84 virtual ::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface> CreatePeerConnection(
86 ::std::unique_ptr<::cricket::PortAllocator> allocator,
87 ::std::unique_ptr<::rtc::RTCCertificateGeneratorInterface> cert_generator,
89 );
90
91 virtual ::webrtc::RtpCapabilities GetRtpSenderCapabilities(::cricket::MediaType) const;
92
93 virtual ::webrtc::RtpCapabilities GetRtpReceiverCapabilities(::cricket::MediaType) const;
94
95 virtual ::webrtc::scoped_refptr<::webrtc::MediaStreamInterface> CreateLocalMediaStream(::std::string const&) = 0;
96
97 virtual ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface>
98 CreateAudioSource(::cricket::AudioOptions const&) = 0;
99
100 virtual ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface>
101 CreateVideoTrack(::webrtc::scoped_refptr<::webrtc::VideoTrackSourceInterface>, ::std::string_view) = 0;
102
103 virtual ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface>
104 CreateVideoTrack(::std::string const& label, ::webrtc::VideoTrackSourceInterface* source);
105
106 virtual ::webrtc::scoped_refptr<::webrtc::AudioTrackInterface>
107 CreateAudioTrack(::std::string const&, ::webrtc::AudioSourceInterface*) = 0;
108
109 virtual bool StartAecDump(::_iobuf*, int64);
110
111 virtual void StopAecDump() = 0;
112
113 virtual ~PeerConnectionFactoryInterface() /*override*/;
114 // NOLINTEND
115
116public:
117 // destructor thunk
118 // NOLINTBEGIN
119 MCNAPI void $dtor();
120 // NOLINTEND
121
122public:
123 // virtual function thunks
124 // NOLINTBEGIN
125 MCNAPI ::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface> $CreatePeerConnection(
128 );
129
130 MCNAPI ::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface> $CreatePeerConnection(
132 ::std::unique_ptr<::cricket::PortAllocator> allocator,
133 ::std::unique_ptr<::rtc::RTCCertificateGeneratorInterface> cert_generator,
135 );
136
137 MCNAPI ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface>
138 $CreateVideoTrack(::std::string const& label, ::webrtc::VideoTrackSourceInterface* source);
139
140
141 // NOLINTEND
142};
143
144} // namespace webrtc
Definition PortAllocator.h:25
Definition RTCCertificateGeneratorInterface.h:17
Definition AudioSourceInterface.h:16
Definition AudioTrackInterface.h:18
Definition MediaStreamInterface.h:18
Definition PeerConnectionFactoryInterface.h:38
Definition PeerConnectionFactoryInterface.h:30
MCAPI ::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface > $CreatePeerConnection(::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration, ::std::unique_ptr<::cricket::PortAllocator > allocator, ::std::unique_ptr<::rtc::RTCCertificateGeneratorInterface > cert_generator, ::webrtc::PeerConnectionObserver *observer)
MCAPI ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface > $CreateVideoTrack(::std::string const &label, ::webrtc::VideoTrackSourceInterface *source)
MCAPI ::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface > $CreatePeerConnection(::webrtc::PeerConnectionInterface::RTCConfiguration const &configuration, ::webrtc::PeerConnectionDependencies dependencies)
Definition PeerConnectionInterface.h:44
Definition PeerConnectionObserver.h:22
Definition RefCountInterface.h:10
Definition VideoTrackInterface.h:20
Definition VideoTrackSourceInterface.h:20
Definition scoped_refptr.h:8
Definition AudioOptions.h:7
Definition Alias.h:14
Definition PeerConnectionDependencies.h:12
Definition PeerConnectionInterface.h:198
Definition RtpCapabilities.h:7