| #include "VideoCapturerInterface.h" |
| 6 |
| 7 | namespace tgcalls { |
| 8 |
| 9 | class DesktopInterface : public PlatformInterface { |
| 10 | public: |
| 11 | std::unique_ptr<webrtc::VideoEncoderFactory> makeVideoEncoderFactory() override; |
| 12 | std::unique_ptr<webrtc::VideoDecoderFactory> makeVideoDecoderFactory() override; |
| 13 | bool supportsEncoding(const std::string &codecName) override; |
| 14 | rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> makeVideoSource(rtc::Thread *signalingThread, rtc::Thread *workerThread) override; |
| 15 | std::unique_ptr<VideoCapturerInterface> makeVideoCapturer(rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source, bool useFrontCamera, std::function<void(VideoState)> stateUpdated, std::shared_ptr<PlatformContext> platformContext) override; |
| 16 |
| 17 | }; |
| 18 |
| 19 | } // namespace tgcalls |
| 20 |
| 21 | #endif // TGCALLS_DESKTOP_INTERFACE_H |
| 22 |