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