Package limn.video
Enum Class MediaPlayer.State
- All Implemented Interfaces:
Serializable,Comparable<MediaPlayer.State>,Constable
- Enclosing class:
MediaPlayer
Where a player is in its life.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClosed.The stream ended and every decoded picture has been handed out.A decode threw.Built, or stopped: nothing is decoding and nothing is sounding.Frozen: the clock is paused, the audio is paused, and the ring keeps filling.Decoding, timing and handing out pictures. -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaPlayer.StateReturns the enum constant of this class with the specified name.static MediaPlayer.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
Built, or stopped: nothing is decoding and nothing is sounding. -
PLAYING
Decoding, timing and handing out pictures. -
PAUSED
Frozen: the clock is paused, the audio is paused, and the ring keeps filling. -
ENDED
The stream ended and every decoded picture has been handed out. -
FAILED
A decode threw.MediaPlayer.failure()has it;MediaPlayer.restart()clears it. -
CLOSED
Closed. Nothing works afterwards, and the video stream is now the caller's to close.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-