public class PlaybackControl
extends java.lang.Object
Constructor | Description |
---|---|
PlaybackControl(Device device) |
Modifier and Type | Method | Description |
---|---|---|
int |
getNumberOfFrames(VideoStream stream) |
Provides the a count of frames that this recording contains for a given stream.
|
boolean |
getRepeatEnabled() |
Gets the current repeat setting of the file device.
|
float |
getSpeed() |
Getter function for the current playback speed of this device.
|
void |
seek(VideoStream stream,
int frameIndex) |
Seeks within a VideoStream to a given FrameID.
|
void |
setRepeatEnabled(boolean repeat) |
Changes the current repeat mode of the device.
|
void |
setSpeed(float speed) |
Setter function for the playback speed of the device.
|
public PlaybackControl(Device device)
public float getSpeed()
public void setSpeed(float speed)
speed
- Desired new value of playback speed, as ratio of original recording.public boolean getRepeatEnabled()
public void setRepeatEnabled(boolean repeat)
repeat
- New value for repeat -- true to enable, false to disablepublic void seek(VideoStream stream, int frameIndex)
stream
- Stream for which the frameIndex value is valid.frameIndex
- Frame index to move playback topublic int getNumberOfFrames(VideoStream stream)
seek(VideoStream stream, int frameIndex)
function.stream
- The video stream to count frames forVideoStream
, or 0 if the stream is not part of the
recording