public class Recorder
extends java.lang.Object
Device.open(String)
method.
PlaybackControl
for options available to play a recorded file.Constructor and Description |
---|
Recorder() |
Modifier and Type | Method and Description |
---|---|
void |
addStream(VideoStream stream,
boolean allowLossyCompression)
Attaches a stream to the recorder.
|
static Recorder |
create(java.lang.String fileName)
Initializes a recorder.
|
void |
destroy()
Destroys a recorder.
|
long |
getHandle()
This function return recorded handle.
|
void |
start()
Starts recording.
|
void |
stop()
Stops recording.
|
public static Recorder create(java.lang.String fileName)
addStream(VideoStream, boolean)
function must also be used to assign input
data to the Recorder.fileName
- The name of a file which will contain the recording.public long getHandle()
public void addStream(VideoStream stream, boolean allowLossyCompression)
start()
method. As soon as the recording process has been started, no
more streams can be attached to the recorder.stream
- The stream to be recorded.allowLossyCompression
- If this value is true, the recorder might use a lossy compression,
which means that when the recording will be played-back, there might be small
differences from the original frame. Default value is false.public void start()
public void stop()
start()
to resume the recording.public void destroy()