|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoctoshape.osa2.StreamSuperClass
public abstract class StreamSuperClass
Field Summary | |
---|---|
static byte |
STATUS_CLOSED
The StreamPlayer is closed. |
static byte |
STATUS_INITIALIZING
The StreamPlayer is currently initializing. |
static byte |
STATUS_READY
The StreamPlayer is initialized. |
static byte |
STATUS_UNINITIALIZED
The StreamPlayer is not initialized. |
Method Summary | |
---|---|
void |
close(java.lang.Runnable onComplete)
Closes and disposes the object. |
byte |
getStatus()
|
void |
setProgressListener(ProgressListener progressListener)
Listens for progress events. |
void |
setStatusChangedListener(StatusChangedListener listener)
Setting a listener to listen for changes to the status. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte STATUS_UNINITIALIZED
Either the initialize() method have never been called, or some problem occurred.
getStatus()
,
setProblemListener(ProblemListener)
,
Constant Field Valuespublic static final byte STATUS_INITIALIZING
getStatus()
,
Constant Field Valuespublic static final byte STATUS_READY
Calling one of the requestPlay methods should fairly quickly result in call to the registered UrlListener.
getStatus()
,
Constant Field Valuespublic static final byte STATUS_CLOSED
The close method have been called, which means that this object can not be used again.
getStatus()
,
close(Runnable)
,
Constant Field ValuesMethod Detail |
---|
public void setStatusChangedListener(StatusChangedListener listener)
listener
- getStatus()
public byte getStatus()
STATUS_...
codessetStatusChangedListener(StatusChangedListener)
,
STATUS_UNINITIALIZED
,
STATUS_INITIALIZING
,
STATUS_READY
,
STATUS_CLOSED
public void setProgressListener(ProgressListener progressListener)
If the stream cannot start immediately we may call the progress listener until it can
start. Currently we do this if and only if updates are downloaded
in order to play the stream. When the listener has been called
with a permille different from 1000 then it will subsequently be called with 1000.
Setting a ProgressListener removes any previously set listener.
If called with null argument this will remove any previously set listener.
progressListener
- public void close(java.lang.Runnable onComplete)
This object can no longer be used after calling this method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |