+
+ private void onFrame(Frame frame) {
+ assert frameListener != null;
+ frameListener.accept(frame.getLedFrame());
+ }
+
+ public void onVideoDeviceChange(Optional<File> videoDevice) {
+ // Should only happen when this mode is active!
+ if (thread != null) {
+ thread.interrupt();
+ }
+ videoDevice.ifPresent(this::startGrabberThread);
+ }