| #include "api/video/video_sink_interface.h" |
| 6 | #include "media/base/video_broadcaster.h" |
| 7 |
| 8 | #include "VideoCameraCapturer.h" |
| 9 |
| 10 | namespace tgcalls { |
| 11 |
| 12 | class VideoCameraCapturer; |
| 13 | class DesktopCapturer; |
| 14 |
| 15 | class VideoCapturerTrackSource : public webrtc::VideoTrackSource { |
| 16 | public: |
| 17 | VideoCapturerTrackSource(); |
| 18 |
| 19 | std::shared_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>> sink(); |
| 20 |
| 21 | private: |
| 22 | rtc::VideoSourceInterface<webrtc::VideoFrame> *source() override; |
| 23 |
| 24 | std::shared_ptr<rtc::VideoBroadcaster> _broadcaster; |
| 25 |
| 26 | }; |
| 27 |
| 28 | } // namespace tgcalls |
| 29 |
| 30 | #endif |
| 31 |