public class VideoDisplay.BasicVideoTimeKeeper extends Object implements TimeKeeper<Timecode>
| Constructor and Description |
|---|
BasicVideoTimeKeeper(boolean liveVideo)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
Timecode |
getTime()
Returns the current time.
|
void |
pause()
Pause the running of the timekeeper.
|
void |
reset()
Reset the timekeeper.
|
void |
run()
Use this method to start the time keeper running.
|
void |
seek(long timestamp)
Seek to a given timestamp.
|
void |
setTimeOffset(long timeOffset)
Set the time offset to use in the current time calculation.
|
void |
stop()
Use this method to stop the time keeper from running.
|
boolean |
supportsPause()
Returns whether the timekeeper supports pausing.
|
boolean |
supportsSeek()
Returns whether the timekeeper supports seeking.
|
public BasicVideoTimeKeeper(boolean liveVideo)
liveVideo - Whether the timekeeper is for a live video or for a video
that supports pausingpublic void run()
run in interface Runnablerun in interface TimeKeeper<Timecode>TimeKeeper.run()public void stop()
stop in interface TimeKeeper<Timecode>TimeKeeper.stop()public Timecode getTime()
getTime in interface TimeKeeper<Timecode>TimeKeeper.getTime()public boolean supportsPause()
supportsPause in interface TimeKeeper<Timecode>TimeKeeper.supportsPause()public boolean supportsSeek()
supportsSeek in interface TimeKeeper<Timecode>TimeKeeper.supportsSeek()public void seek(long timestamp)
seek in interface TimeKeeper<Timecode>timestamp - The timestamp to seek toTimeKeeper.seek(long)public void reset()
reset in interface TimeKeeper<Timecode>TimeKeeper.reset()public void pause()
pause in interface TimeKeeper<Timecode>TimeKeeper.pause()public void setTimeOffset(long timeOffset)
timeOffset - the new time offset.