+ if (config.video.deviceIsAutomatic) {
+ deviceListener.startListening();
+ } else {
+ File videoDevice = new File(config.video.device);
+ startGrabberThread(videoDevice);
+ }
+ }
+
+ @Override
+ public void pause() {
+ isPaused = true;
+ }
+
+ @Override
+ public void resume() {
+ isPaused = false;
+ synchronized (grabberThread) {
+ grabberThread.notify();
+ }