| 6 |
| 7 | VideoCapturerInterfaceImpl::VideoCapturerInterfaceImpl(rtc::scoped_refptr<webrtc::JavaVideoTrackSourceInterface> source, bool useFrontCamera, std::function<void(VideoState)> stateUpdated, std::shared_ptr<PlatformContext> platformContext) { |
| 8 | _capturer = std::unique_ptr<VideoCameraCapturer>(new VideoCameraCapturer(source, useFrontCamera, 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 | } // namespace tgcalls |
| 24 |