19#include <media/base/video_broadcaster.h>
20#include <pc/video_track_source.h>
25namespace webrtc_streaming {
31 void OnFrame(std::shared_ptr<VideoFrameBuffer> frame, int64_t timestamp_us);
37 bool GetStats(Stats* stats)
override;
42 rtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink)
override {}
44 rtc::VideoSinkInterface<webrtc::RecordableEncodedFrame>* sink)
override {}
46 rtc::VideoSourceInterface<webrtc::VideoFrame>*
source()
override;
67 void OnFrame(std::shared_ptr<VideoFrameBuffer> frame,
68 int64_t timestamp_us)
override {
Definition: video_sink.h:26
Definition: video_track_source_impl.h:60
rtc::scoped_refptr< VideoTrackSourceImpl > track_source_impl_
Definition: video_track_source_impl.h:73
virtual ~VideoTrackSourceImplSinkWrapper()=default
void OnFrame(std::shared_ptr< VideoFrameBuffer > frame, int64_t timestamp_us) override
Definition: video_track_source_impl.h:67
VideoTrackSourceImplSinkWrapper(rtc::scoped_refptr< VideoTrackSourceImpl > obj)
Definition: video_track_source_impl.h:64
Definition: video_track_source_impl.h:27
void GenerateKeyFrame() override
Definition: video_track_source_impl.h:40
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:49
void RemoveEncodedSink(rtc::VideoSinkInterface< webrtc::RecordableEncodedFrame > *sink) override
Definition: video_track_source_impl.h:43
rtc::VideoSourceInterface< webrtc::VideoFrame > * source() override
Definition: video_track_source_impl.cpp:73
void AddEncodedSink(rtc::VideoSinkInterface< webrtc::RecordableEncodedFrame > *sink) override
Definition: video_track_source_impl.h:41
rtc::VideoBroadcaster broadcaster_
Definition: video_track_source_impl.h:51
bool GetStats(Stats *stats) override
Definition: video_track_source_impl.cpp:66
int height_
Definition: video_track_source_impl.h:50
bool SupportsEncodedOutput() const override
Definition: video_track_source_impl.cpp:72
Definition: alloc_utils.cpp:23