#ifndef TGCALLS_ANDROID_INTERFACE_H #define TGCALLS_ANDROID_INTERFACE_H #include "sdk/android/native_api/video/video_source.h" #include "platform/PlatformInterface.h" #include "VideoCapturerInterface.h" namespace tgcalls { class AndroidInterface : public PlatformInterface { public: std::unique_ptr makeVideoEncoderFactory() override; std::unique_ptr makeVideoDecoderFactory() override; bool supportsEncoding(const std::string &codecName) override; rtc::scoped_refptr makeVideoSource(rtc::Thread *signalingThread, rtc::Thread *workerThread) override; std::unique_ptr makeVideoCapturer(rtc::scoped_refptr source, bool useFrontCamera, std::function stateUpdated, std::shared_ptr platformContext) override; private: rtc::scoped_refptr _source; std::unique_ptr hardwareVideoEncoderFactory; std::unique_ptr softwareVideoEncoderFactory; }; } // namespace tgcalls #endif