private void stop() { LOG.info("stop"); playing = false; time = 0; app.setCameraEnabled(true); app.getGuiNode().setCullHint(Spatial.CullHint.Inherit); app.getNifty().gotoScreen(oldScreen); this.sceneNode.setCullHint(Spatial.CullHint.Inherit); if (recording) { recording = false; app.getStateManager().detach(app.getStateManager().getState(VideoRecorderAppState.class)); } }
public void record() { this.sceneNode.setCullHint(Spatial.CullHint.Always); recording = true; app.getStateManager().attach(new VideoRecorderAppState(1f)); LOG.info("recording"); play(); }