19#include <media/base/video_broadcaster.h>
20#include <pc/video_track_source.h>
25namespace webrtc_streaming {
43 void OnFrame(std::shared_ptr<VideoFrameBuffer> frame, int64_t timestamp_us);
49 bool GetStats(Stats* stats)
override;
54 rtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink)
override {}
56 rtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink)
override {}
58 rtc::VideoSourceInterface<webrtc::VideoFrame>*
source()
override;
80 void OnFrame(std::shared_ptr<VideoFrameBuffer> frame,
81 int64_t timestamp_us)
override {
Definition: video_sink.h:26
Definition: video_track_source_impl.h:73
rtc::scoped_refptr< VideoTrackSourceImpl > track_source_impl_
Definition: video_track_source_impl.h:86
virtual ~VideoTrackSourceImplSinkWrapper()=default
void OnFrame(std::shared_ptr< VideoFrameBuffer > frame, int64_t timestamp_us) override
Definition: video_track_source_impl.h:80
VideoTrackSourceImplSinkWrapper(rtc::scoped_refptr< VideoTrackSourceImpl > obj)
Definition: video_track_source_impl.h:77
Definition: video_track_source_impl.h:39
void GenerateKeyFrame() override
Definition: video_track_source_impl.h:52
void OnFrame(std::shared_ptr< VideoFrameBuffer > frame, int64_t timestamp_us)
Definition: video_track_source_impl.cpp:55
VideoTrackSourceImpl(int width, int height)
Definition: video_track_source_impl.cpp:52
int width_
Definition: video_track_source_impl.h:61
void RemoveEncodedSink(rtc::VideoSinkInterface< webrtc::RecordableEncodedFrame > *sink) override
Definition: video_track_source_impl.h:55
rtc::VideoSourceInterface< webrtc::VideoFrame > * source() override
Definition: video_track_source_impl.cpp:100
void AddEncodedSink(rtc::VideoSinkInterface< webrtc::RecordableEncodedFrame > *sink) override
Definition: video_track_source_impl.h:53
rtc::VideoBroadcaster broadcaster_
Definition: video_track_source_impl.h:64
bool GetStats(Stats *stats) override
Definition: video_track_source_impl.cpp:93
int height_
Definition: video_track_source_impl.h:62
int64_t last_timestamp_us_
Definition: video_track_source_impl.h:63
bool SupportsEncodedOutput() const override
Definition: video_track_source_impl.cpp:99
Definition: alloc_driver.h:20