| #include "VideoCameraCapturer.h" |
| 6 |
| 7 | namespace tgcalls { |
| 8 |
| 9 | class VideoCameraCapturer; |
| 10 |
| 11 | class VideoCapturerTrackSource : public webrtc::VideoTrackSource { |
| 12 | private: |
| 13 | struct CreateTag { |
| 14 | }; |
| 15 |
| 16 | public: |
| 17 | static rtc::scoped_refptr<VideoCapturerTrackSource> Create(); |
| 18 |
| 19 | VideoCapturerTrackSource( |
| 20 | const CreateTag &, |
| 21 | std::unique_ptr<VideoCameraCapturer> capturer); |
| 22 |
| 23 | VideoCameraCapturer *capturer() const; |
| 24 |
| 25 | private: |
| 26 | rtc::VideoSourceInterface<webrtc::VideoFrame> *source() override; |
| 27 |
| 28 | std::unique_ptr<VideoCameraCapturer> _capturer; |
| 29 |
| 30 | }; |
| 31 |
| 32 | } // namespace tgcalls |
| 33 |
| 34 | #endif |
| 35 |