| #include "VideoCameraCapturer.h" |
| 6 | #include "api/media_stream_interface.h" |
| 7 |
| 8 | namespace tgcalls { |
| 9 |
| 10 | class VideoCapturerInterfaceImpl final : public VideoCapturerInterface { |
| 11 | public: |
| 12 | VideoCapturerInterfaceImpl(rtc::scoped_refptr<webrtc::JavaVideoTrackSourceInterface> source, bool useFrontCamera, std::function<void(VideoState)> stateUpdated, std::shared_ptr<PlatformContext> platformContext); |
| 13 |
| 14 | void setState(VideoState state) override; |
| 15 | void setPreferredCaptureAspectRatio(float aspectRatio) override; |
| 16 | void setUncroppedOutput(std::shared_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>> sink) override; |
| 17 |
| 18 | private: |
| 19 | std::unique_ptr<VideoCameraCapturer> _capturer; |
| 20 |
| 21 | }; |
| 22 |
| 23 | } // namespace tgcalls |
| 24 |
| 25 | #endif |
| 26 |