|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.phonon.Phonon.State
public static final class Phonon.State
The state enum describes the different states a media object can take. Several functions of MediaObject
are asynchronous, so even if a you have requested a state change through a function call, e.g., through play()
, you cannot be sure that the change has taken place before you receive the stateChanged()
signal.
A media object can at any time change into any state, regardless of the state it previously had.
MediaObject
.
Field Summary | |
---|---|
static Phonon.State |
BufferingState
The Player is waiting for data to be able to start or continue playing. |
static Phonon.State |
ErrorState
When a media object enters the error state a problem with the playback has occurred. |
static Phonon.State |
LoadingState
After construction it might take a while before the media object is ready to play() . |
static Phonon.State |
PausedState
The media player has currently paused its playback, i.e., it stops playing but keeps the current playback position in the stream. |
static Phonon.State |
PlayingState
The media object is playing back its media source. |
static Phonon.State |
StoppedState
In the stopped state, the media object is ready to play its current media source. |
Method Summary | |
---|---|
static Phonon.State |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static Phonon.State |
valueOf(java.lang.String name)
|
static Phonon.State[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Phonon.State LoadingState
play()
. This state is commonly used by backends to initialize the media graph and loading the source. When the object leaves the loading state, it will enter the StoppedState
unless an error occurred or another state is requested through a function call, e.g., MediaObject::play()
.
public static final Phonon.State StoppedState
position
in the media stream is then 0.
public static final Phonon.State PlayingState
public static final Phonon.State BufferingState
public static final Phonon.State PausedState
public static final Phonon.State ErrorState
Phonon::ErrorType
, and the type can be queried through errorType()
. A FatalError
implies that the playback cannot continue, but one can still try with a new media source. With a NormalError
it might be possible to continue playback, and a media object may therefore change state from the ErrorState
.
Method Detail |
---|
public static Phonon.State[] values()
public static Phonon.State valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static Phonon.State resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |