use of co.videofirst.vft.capture.model.display.DisplayUpdate in project vft-capture by videofirst.
the class DefaultCaptureService method record.
@Override
public CaptureStatus record() {
if (captureStatus.getState() != CaptureState.started) {
throw new InvalidStateException("Current state is '" + captureStatus.getState() + "' - " + "video can only be recoded when state is 'started'.");
}
DisplayUpdate displayUpdate = getDisplayUpdate();
captureStatus = captureStatus.record(displayUpdate.getCapture());
videoRecorder.record(getVideoRecord());
refreshDisplay();
return status();
}
use of co.videofirst.vft.capture.model.display.DisplayUpdate in project vft-capture by videofirst.
the class DefaultCaptureService method refreshDisplay.
/**
* Refresh display.
*/
private void refreshDisplay() {
DisplayUpdate displayUpdate = getDisplayUpdate();
displayService.update(displayUpdate, captureStatus);
}
Aggregations