| 89 | } |
| 90 | |
| 91 | void VideoCaptureInterfaceObject::withNativeImplementation(std::function<void(void *)> completion) { |
| 92 | if (_videoCapturer) { |
| 93 | _videoCapturer->withNativeImplementation(completion); |
| 94 | } else { |
| 95 | completion(nullptr); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | void VideoCaptureInterfaceObject::setState(VideoState state) { |
| 100 | if (_state != state) { |