com.adobe.mediacore
Enum MediaPlayer.PlayerState

java.lang.Object
  extended by java.lang.Enum<MediaPlayer.PlayerState>
      extended by com.adobe.mediacore.MediaPlayer.PlayerState
All Implemented Interfaces:
Serializable, Comparable<MediaPlayer.PlayerState>
Enclosing interface:
MediaPlayer

public static enum MediaPlayer.PlayerState
extends Enum<MediaPlayer.PlayerState>

The player status.


Enum Constant Summary
COMPLETE
          The end of the stream was reached and the playback is stopped.
ERROR
          An error has occurred and the playback is currently stopped.
IDLE
          The player was created and is waiting for a media player item to be specified.
INITIALIZED
          The media player item was loaded.
INITIALIZING
          The media player is loading the media player item.
PAUSED
          The playback was paused.
PLAYING
          The playback is currently in progress.
PREPARED
          The media player item was loaded successfully and the player can start buffering data.
PREPARING
          The media player is loading any associated resources.
READY
          The media player has buffered enough data to start playing immediately.
RELEASED
          The media player has been released together with any associated resources.
 
Method Summary
static MediaPlayer.PlayerState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MediaPlayer.PlayerState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

IDLE

public static final MediaPlayer.PlayerState IDLE
The player was created and is waiting for a media player item to be specified.


INITIALIZING

public static final MediaPlayer.PlayerState INITIALIZING
The media player is loading the media player item.


INITIALIZED

public static final MediaPlayer.PlayerState INITIALIZED
The media player item was loaded.


PREPARING

public static final MediaPlayer.PlayerState PREPARING
The media player is loading any associated resources.


PREPARED

public static final MediaPlayer.PlayerState PREPARED
The media player item was loaded successfully and the player can start buffering data.


READY

public static final MediaPlayer.PlayerState READY
The media player has buffered enough data to start playing immediately. TODO: Ready and prepared state are currently one and the same - remove one of them


PLAYING

public static final MediaPlayer.PlayerState PLAYING
The playback is currently in progress.


PAUSED

public static final MediaPlayer.PlayerState PAUSED
The playback was paused.


COMPLETE

public static final MediaPlayer.PlayerState COMPLETE
The end of the stream was reached and the playback is stopped.


ERROR

public static final MediaPlayer.PlayerState ERROR
An error has occurred and the playback is currently stopped. The media player can be reset ( through reset() method ) and another media player item can be queued for playback through replaceCurrentItem() method.


RELEASED

public static final MediaPlayer.PlayerState RELEASED
The media player has been released together with any associated resources. This instance can not be used anymore.

Method Detail

values

public static MediaPlayer.PlayerState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MediaPlayer.PlayerState c : MediaPlayer.PlayerState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MediaPlayer.PlayerState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null