+
+ private void onVideoFrame(VideoFrame frame) {
+ updateWithFrame(frame.getLedFrame());
+ }
+
+ public void onVideoDeviceChange(Optional<File> videoDevice) {
+ // Should only happen when this mode is active!
+ if (grabberThread != null) {
+ grabberThread.interrupt();
+ }
+ videoDevice.ifPresent(this::startGrabberThread);
+ }