#include "VideoCapturerInterfaceImpl.h" #include #include "VideoCameraCapturer.h" namespace tgcalls { VideoCapturerInterfaceImpl::VideoCapturerInterfaceImpl(rtc::scoped_refptr source, std::string deviceId, std::function stateUpdated, std::shared_ptr platformContext) { _capturer = std::make_unique(source, deviceId, stateUpdated, platformContext); } void VideoCapturerInterfaceImpl::setState(VideoState state) { _capturer->setState(state); } void VideoCapturerInterfaceImpl::setPreferredCaptureAspectRatio(float aspectRatio) { _capturer->setPreferredCaptureAspectRatio(aspectRatio); } void VideoCapturerInterfaceImpl::setUncroppedOutput(std::shared_ptr> sink) { _capturer->setUncroppedSink(sink); } int VideoCapturerInterfaceImpl::VideoCapturerInterfaceImpl::getRotation() { return 0; } void VideoCapturerInterfaceImpl::setOnFatalError(std::function error) { } } // namespace tgcalls