
ru.sbtqa.monte.screenrecorder.CommandlineRecorderMain Maven / Gradle / Ivy
/* @(#)CommandlineRecorderMain.java
* Copyright © 2011 Werner Randelshofer, Switzerland.
* You may only use this software in accordance with the license terms.
*/
package ru.sbtqa.monte.screenrecorder;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsEnvironment;
/**
* {@code CommandlineRecorderMain}.
*
* @author Werner Randelshofer
* @version 1.0 2011-08-05 Created.
*/
public class CommandlineRecorderMain {
/**
* FIXME - Add commandline arguments for recording time.
*
* @param args the command line arguments
* @throws java.lang.Exception TODO
*/
public static void main(String[] args) throws Exception {
GraphicsConfiguration gc = GraphicsEnvironment//
.getLocalGraphicsEnvironment()//
.getDefaultScreenDevice()//
.getDefaultConfiguration();
// FIXME - Implement me
ScreenRecorder sr = new ScreenRecorder(
gc/*,
"QuickTime", 24,
ScreenRecorder.CursorEnum.BLACK,
30, 15,
44100*/);
sr.start();
Thread.sleep(5000);
sr.stop();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy