|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.rbnb.simpleplayer.Player
public final class Player
General purpose class for playing out data from a V2
This class provides some simple controls for playing out one or more
channels of
PlayerChannelListener,
PlayerTimeListener| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Player(String addressI)
Builds a Player for the specified server address. |
|
| Method Summary | |
|---|---|
void |
add(String nameI,
PlayerChannelListener listenerI)
Adds a channel and its listener. |
void |
addTimeListener(PlayerTimeListener timeListenerI)
Adds a PlayerTimeListener. |
void |
connect()
Connects to the server. |
void |
disconnect()
Disconnects from the server. |
void |
gotoPosition(int positionI,
int minimumI,
int maximumI)
Goes to a specified position. |
void |
monitor()
Starts monitoring the current channel list. |
void |
move(double startI,
double durationI,
String referenceI)
Moves to the specified location. |
void |
pause()
Pauses the player. |
void |
remove(String nameI)
Removes a channel and its listener. |
void |
remove(String nameI,
PlayerChannelListener listenerI)
Removes a channel and its listener. |
void |
removeTimeListener(PlayerTimeListener timeListenerI)
Removes a PlayerTimeListener. |
void |
run()
Runs this Player. |
void |
terminate()
Terminates this player. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Player(String addressI)
Player for the specified server address.
addressI - the server address.| Method Detail |
|---|
public final void add(String nameI,
PlayerChannelListener listenerI)
nameI - the channel to be added.listenerI - the listener for the channel.remove(String nameI),
remove(String nameI,PlayerChannelListener listenerI)public final void addTimeListener(PlayerTimeListener timeListenerI)
PlayerTimeListener.
timeListenerI - the PlayerTimeListener.removeTimeListener(PlayerTimeListener timeListenerI)
public final void connect()
throws InterruptedException
InterruptedException - if the operation is interrupted.disconnect()
public final void disconnect()
throws InterruptedException
InterruptedException - if the operation is interrupted.connect()
public final void gotoPosition(int positionI,
int minimumI,
int maximumI)
positionI - the position.minimumI - the minimum of the range.maximumI - the maximum of the range.public final void monitor()
public final void move(double startI,
double durationI,
String referenceI)
startI - the starting time.durationI - the duration to retrieve (-1. means the current).referenceI - the reference.public final void pause()
public final void remove(String nameI)
nameI - the name of the channel.add(String nameI,PlayerChannelListener listenerI)
public final void remove(String nameI,
PlayerChannelListener listenerI)
nameI - the name of the channel.listenerI - the listener for the channel.add(String nameI,PlayerChannelListener listenerI)public final void removeTimeListener(PlayerTimeListener timeListenerI)
PlayerTimeListener.
timeListenerI - the PlayerTimeListener.addTimeListener(PlayerTimeListener timeListenerI)public final void run()
Player.
run in interface Runnablerun in class Thread
public final void terminate()
throws InterruptedException
InterruptedException - if the operation is interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||