LeviLamina
Loading...
Searching...
No Matches
VideoTrack.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/VideoSinkInterface.h"
7#include "mc/external/rtc/VideoSourceBaseGuarded.h"
8#include "mc/external/webrtc/MediaStreamTrack.h"
9#include "mc/external/webrtc/MediaStreamTrackInterface.h"
10#include "mc/external/webrtc/ObserverInterface.h"
11#include "mc/external/webrtc/VideoTrackInterface.h"
12#include "mc/external/webrtc/scoped_refptr.h"
13
14// auto generated forward declare list
15// clang-format off
16namespace rtc { class Thread; }
17namespace rtc { struct VideoSinkWants; }
18namespace webrtc { class VideoFrame; }
19namespace webrtc { class VideoTrackSourceInterface; }
20// clang-format on
21
22namespace webrtc {
23
24class VideoTrack : public ::webrtc::MediaStreamTrack<::webrtc::VideoTrackInterface>,
27public:
28 // member variables
29 // NOLINTBEGIN
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 VideoTrack& operator=(VideoTrack const&);
40 VideoTrack(VideoTrack const&);
41 VideoTrack();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual void AddOrUpdateSink(
48 ::rtc::VideoSinkWants const& wants
49 ) /*override*/;
50
51 virtual void RemoveSink(::rtc::VideoSinkInterface<::webrtc::VideoFrame>* sink) /*override*/;
52
53 virtual void RequestRefreshFrame() /*override*/;
54
55 virtual ::webrtc::VideoTrackSourceInterface* GetSource() const /*override*/;
56
57 virtual ::webrtc::VideoTrackInterface::ContentHint content_hint() const /*override*/;
58
59 virtual void set_content_hint(::webrtc::VideoTrackInterface::ContentHint hint) /*override*/;
60
61 virtual bool set_enabled(bool enable) /*override*/;
62
63 virtual bool enabled() const /*override*/;
64
65 virtual ::webrtc::MediaStreamTrackInterface::TrackState state() const /*override*/;
66
67 virtual ::std::string kind() const /*override*/;
68
69 virtual ~VideoTrack() /*override*/;
70
71 virtual void OnChanged() /*override*/;
72 // NOLINTEND
73
74public:
75 // static functions
76 // NOLINTBEGIN
77 MCNAPI static ::webrtc::scoped_refptr<::webrtc::VideoTrack> Create(
78 ::std::string_view id,
80 ::rtc::Thread* worker_thread
81 );
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCNAPI void $dtor();
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCNAPI void
95
97
98 MCNAPI void $RequestRefreshFrame();
99
100 MCNAPI ::webrtc::VideoTrackSourceInterface* $GetSource() const;
101
102 MCNAPI ::webrtc::VideoTrackInterface::ContentHint $content_hint() const;
103
104 MCNAPI void $set_content_hint(::webrtc::VideoTrackInterface::ContentHint hint);
105
106 MCNAPI bool $set_enabled(bool enable);
107
108 MCNAPI bool $enabled() const;
109
110 MCNAPI ::webrtc::MediaStreamTrackInterface::TrackState $state() const;
111
112 MCNAPI ::std::string $kind() const;
113
114 MCNAPI void $OnChanged();
115
116
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftableForNotifierInterface();
123
124 MCNAPI static void** $vftableForObserverInterface();
125
126 MCNAPI static void** $vftableForVideoSourceBaseGuarded();
127
128 MCNAPI static void** $vftableForRefCountInterface();
129
130 MCNAPI static void** $vftableForMediaStreamTrack();
131 // NOLINTEND
132};
133
134} // namespace webrtc
Definition Thread.h:20
Definition VideoSinkInterface.h:8
Definition VideoSourceBaseGuarded.h:17
Definition MediaStreamTrack.h:8
Definition ObserverInterface.h:7
Definition VideoFrame.h:16
Definition VideoTrackSourceInterface.h:20
static MCAPI void ** $vftableForObserverInterface()
static MCAPI void ** $vftableForNotifierInterface()
static MCAPI ::webrtc::scoped_refptr<::webrtc::VideoTrack > Create(::std::string_view id, ::webrtc::scoped_refptr<::webrtc::VideoTrackSourceInterface > source, ::rtc::Thread *worker_thread)
MCAPI bool $set_enabled(bool enable)
static MCAPI void ** $vftableForVideoSourceBaseGuarded()
MCAPI::std::string $kind() const
MCAPI void $OnChanged()
MCAPI void $RemoveSink(::rtc::VideoSinkInterface<::webrtc::VideoFrame > *sink)
MCAPI void $RequestRefreshFrame()
static MCAPI void ** $vftableForMediaStreamTrack()
MCAPI void $dtor()
static MCAPI void ** $vftableForRefCountInterface()
MCAPI bool $enabled() const
MCAPI::webrtc::VideoTrackInterface::ContentHint $content_hint() const
MCAPI::webrtc::VideoTrackSourceInterface * $GetSource() const
MCAPI void $set_content_hint(::webrtc::VideoTrackInterface::ContentHint hint)
MCAPI::webrtc::MediaStreamTrackInterface::TrackState $state() const
MCAPI void $AddOrUpdateSink(::rtc::VideoSinkInterface<::webrtc::VideoFrame > *sink, ::rtc::VideoSinkWants const &wants)
Definition scoped_refptr.h:8
Definition Alias.h:14
Definition VideoSinkWants.h:7