#ifndef TGCALLS_VIDEO_CAPTURER_INTERFACE_IMPL_H #define TGCALLS_VIDEO_CAPTURER_INTERFACE_IMPL_H #include "VideoCapturerInterface.h" #include "VideoCameraCapturer.h" #include "api/media_stream_interface.h" namespace tgcalls { class VideoCapturerInterfaceImpl final : public VideoCapturerInterface { public: VideoCapturerInterfaceImpl(rtc::scoped_refptr source, bool useFrontCamera, std::function stateUpdated, std::shared_ptr platformContext); void setState(VideoState state) override; void setPreferredCaptureAspectRatio(float aspectRatio) override; void setUncroppedOutput(std::shared_ptr> sink) override; private: std::unique_ptr _capturer; }; } // namespace tgcalls #endif