use of co.videofirst.vft.capture.exception.VideoRecordException in project vft-capture by videofirst.
the class VideoRecorderMonte method record.
@Override
public void record(VideoRecord videoRecord) {
try {
this.videoRecord = videoRecord;
DisplayCapture displayCapture = videoRecord.getCapture();
Rectangle captureArea = new Rectangle(displayCapture.getX(), displayCapture.getY(), displayCapture.getWidth(), displayCapture.getHeight());
screenRecorder = new EnhancedScreenRecorder(graphicsConfiguration, captureArea, fileFormat, screenFormat, mouseFormat, audioFormat, tempFolder);
screenRecorder.start();
} catch (IOException ioEx) {
throw new VideoRecordException("Record exception when starting recording", ioEx);
} catch (AWTException awtEx) {
throw new VideoRecordException("Record exception when starting recording", awtEx);
}
}
Aggregations