|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.buffalo.flexTPSRecorder
public class flexTPSRecorder
flexTPSRecorder is a class (and application) to record JPEG snapshots of a set of streams from a flexTPS server. This class is mainly for recording time-lapse video so the recording rate (or period) should be slow. On the order of seconds, minutes, or hours.
The snapshots will be saved to disk (in the optional specified directory)
using the filename format:
<feed>-<stream>_<timestamp>.jpg.
| Constructor Summary | |
|---|---|
flexTPSRecorder()
Create a recorder to save a single set of images from the flexTPS server at localhost, in the current directory. |
|
flexTPSRecorder(String hostname)
Create a recorder to save a single set of images from the flexTPS server at hostname, in the current directory. |
|
flexTPSRecorder(String hostname,
double period)
Create a recorder to save images from the flexTPS server at hostname, and at the specified period, in the
current directory. |
|
flexTPSRecorder(String hostname,
double period,
File directory)
Create a recorder to save images from the flexTPS server at hostname, at the specified period, in the
specified directory. |
|
| Method Summary | |
|---|---|
boolean |
isRecording()
Indicates if video streams are being recorded. |
boolean |
login(String username,
String password)
Login into the flexTPS server with the given username and password. |
static void |
main(String[] args)
Runs flexTPSRecorder with the specified command link arguments. |
void |
setStreams(List<String> streams)
Set the streams to be recorded. |
void |
start()
Start recording the video streams to disk. |
void |
stop()
Stops recording of video. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public flexTPSRecorder()
public flexTPSRecorder(String hostname)
hostname, in the current directory.
hostname - the hostname of the flexTPS server
public flexTPSRecorder(String hostname,
double period)
hostname, and at the specified period, in the
current directory.
If the period is 0, only a single set of images will be
saved.
hostname - the hostname of the flexTPS serverperiod - the period (in seconds) between snapshots
public flexTPSRecorder(String hostname,
double period,
File directory)
hostname, at the specified period, in the
specified directory.
If the period is 0, only a single set of images will be
saved.
hostname - the hostname of the flexTPS serverperiod - the period (in seconds) between snapshotsdirectory - the directory to save the snapshots in| Method Detail |
|---|
public boolean login(String username,
String password)
username - the username to login withpassword - the password for the username accout
public void setStreams(List<String> streams)
<feed>-<stream>.
streams - a list of stream name to recordpublic void start()
setStreams.
stop(),
setStreams(List)public void stop()
start has not been called,
or has finished, this will do nothing.
If the recorder is in the process of saving an image, the recording will be stopped when the image has been saved.
start(),
isRecording()public boolean isRecording()
start(),
stop()public static void main(String[] args)
args - the command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||