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/webrtc/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 webrtc { class AudioSourceInterface; }
15namespace webrtc { class AudioTrackInterface; }
16namespace webrtc { class MediaStreamInterface; }
17namespace webrtc { class PeerConnectionInterface; }
18namespace webrtc { class VideoTrackInterface; }
19namespace webrtc { class VideoTrackSourceInterface; }
20namespace webrtc { struct AudioOptions; }
21namespace webrtc { struct PeerConnectionDependencies; }
22namespace webrtc { struct RtpCapabilities; }
23// clang-format on
24
25namespace webrtc {
26
28public:
29 // PeerConnectionFactoryInterface inner types declare
30 // clang-format off
31 class Options;
32 // clang-format on
33
34 // PeerConnectionFactoryInterface inner types define
35 class Options {
36 public:
37 // member variables
38 // NOLINTBEGIN
43 // NOLINTEND
44
45 public:
46 // prevent constructor by default
47 Options& operator=(Options const&);
48 Options(Options const&);
49 Options();
50 };
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 virtual void SetOptions(::webrtc::PeerConnectionFactoryInterface::Options const& options) = 0;
56
57 virtual ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::PeerConnectionInterface>>
58 CreatePeerConnectionOrError(
61 ) = 0;
62
63 virtual ::webrtc::RtpCapabilities GetRtpSenderCapabilities(::webrtc::MediaType kind) const = 0;
64
65 virtual ::webrtc::RtpCapabilities GetRtpReceiverCapabilities(::webrtc::MediaType kind) const = 0;
66
67 virtual ::webrtc::scoped_refptr<::webrtc::MediaStreamInterface>
68 CreateLocalMediaStream(::std::string const& stream_id) = 0;
69
70 virtual ::webrtc::scoped_refptr<::webrtc::AudioSourceInterface>
71 CreateAudioSource(::webrtc::AudioOptions const& options) = 0;
72
73 virtual ::webrtc::scoped_refptr<::webrtc::VideoTrackInterface>
74 CreateVideoTrack(::webrtc::scoped_refptr<::webrtc::VideoTrackSourceInterface> source, ::std::string_view id) = 0;
75
76 virtual ::webrtc::scoped_refptr<::webrtc::AudioTrackInterface>
77 CreateAudioTrack(::std::string const& id, ::webrtc::AudioSourceInterface* source) = 0;
78
79 virtual bool StartAecDump(::_iobuf* file, int64 max_size_bytes);
80
81 virtual void StopAecDump() = 0;
82
83 virtual ~PeerConnectionFactoryInterface() /*override*/;
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCNAPI void $dtor();
90 // NOLINTEND
91};
92
93} // namespace webrtc
Definition AudioSourceInterface.h:16
Definition AudioTrackInterface.h:18
Definition MediaStreamInterface.h:18
Definition PeerConnectionFactoryInterface.h:35
Definition PeerConnectionFactoryInterface.h:27
Definition PeerConnectionInterface.h:46
Definition RefCountInterface.h:10
Definition VideoTrackInterface.h:20
Definition VideoTrackSourceInterface.h:20
Definition scoped_refptr.h:8
Definition Alias.h:14
Definition AudioOptions.h:7
Definition PeerConnectionDependencies.h:12
Definition PeerConnectionInterface.h:200
Definition RtpCapabilities.h:7