public interface Playable
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayableListener(PlayableListener listener)
Adds a PlayableListener to be notified when the PlayState changes.
|
boolean |
complete(long time)
Stops the Playable, marking it complete.
|
Long |
getElapsedPauseTime(long time)
Returns the elapsed time between the last pause time and the given time.
|
Long |
getElapsedPlayTime(long time)
Returns the elapsed time between the start time and the given time.
|
Long |
getPauseTime()
Returns the time given when the Playable was last paused.
|
PlayState |
getPlayState()
Return the current PlayState of the Playable.
|
Long |
getResumeTime()
Returns the time given when the Playable was last resumed.
|
Long |
getStartTime()
Returns the time given when the Playable was started.
|
Long |
getStopTime()
Returns the time given when the Playable was last stopped.
|
boolean |
pause(long time)
Pauses the Playable in its current state.
|
void |
removePlayableListener(PlayableListener listener)
Removes a PlayableListener from being notified
|
boolean |
resume(long time)
Resumes a paused Playable.
|
boolean |
start(long time)
Starts the Playable from its initial state.
|
boolean |
stop(long time)
Stops a Playable, returning to the initial state.
|
void addPlayableListener(PlayableListener listener)
listener - PlayableListener to be addedvoid removePlayableListener(PlayableListener listener)
listener - PlayableListener to removePlayState getPlayState()
boolean start(long time)
time - when the Playable is started (used to synchronize actions)
the time is usually the current system time UTC.boolean pause(long time)
time - when the Playable is paused (used to synchronize actions)boolean resume(long time)
time - when the Playable is resumed (used to synchronize actions)boolean stop(long time)
time - when the Playable is stopped (used to synchronize actions)boolean complete(long time)
time - when the Playable is complete (used to synchronize actions)Long getStartTime()
Long getPauseTime()
Long getResumeTime()
Long getStopTime()
Long getElapsedPlayTime(long time)
time - the time to checkLong getElapsedPauseTime(long time)
time - the time to checkCopyright © 2011-2014. All Rights Reserved.