#ifndef TGCALLS_DARWIN_INTERFACE_H #define TGCALLS_DARWIN_INTERFACE_H #include "platform/PlatformInterface.h" namespace tgcalls { class DarwinInterface : public PlatformInterface { public: void configurePlatformAudio() override; float getDisplayAspectRatio() override; 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; virtual void adaptVideoSource(rtc::scoped_refptr videoSource, int width, int height, int fps) override; std::unique_ptr makeVideoCapturer(rtc::scoped_refptr source, bool useFrontCamera, std::function stateUpdated, std::shared_ptr platformContext, std::pair &outResolution) override; }; } // namespace tgcalls #endif