| 6 |
| 7 | namespace tgcalls { |
| 8 |
| 9 | VideoCapturerInterfaceImpl::VideoCapturerInterfaceImpl(rtc::scoped_refptr<webrtc::JavaVideoTrackSourceInterface> source, std::string deviceId, std::function<void(VideoState)> stateUpdated, std::shared_ptr<PlatformContext> platformContext) { |
| 10 | _capturer = std::make_unique<VideoCameraCapturer>(source, deviceId, stateUpdated, platformContext); |
| 11 | } |
| 12 |
| 13 | void VideoCapturerInterfaceImpl::setState(VideoState state) { |
| 14 | _capturer->setState(state); |
| 15 | } |
| 16 |
| 17 | void VideoCapturerInterfaceImpl::setPreferredCaptureAspectRatio(float aspectRatio) { |
| 18 | _capturer->setPreferredCaptureAspectRatio(aspectRatio); |
| 19 | } |
| 20 |
| 21 | void VideoCapturerInterfaceImpl::setUncroppedOutput(std::shared_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>> sink) { |
| 22 | _capturer->setUncroppedSink(sink); |
| 23 | } |
| 24 |
| 25 | int VideoCapturerInterfaceImpl::VideoCapturerInterfaceImpl::getRotation() { |
| 26 | return 0; |
| 27 | } |
| 28 |
| 29 | void VideoCapturerInterfaceImpl::setOnFatalError(std::function<void()> error) { |
| 30 |
| 31 | } |
| 32 |
| 33 | } // namespace tgcalls |
| 34 |