Package limn.video

Enum Class MediaPlayer.State

java.lang.Object
java.lang.Enum<MediaPlayer.State>
limn.video.MediaPlayer.State
All Implemented Interfaces:
Serializable, Comparable<MediaPlayer.State>, Constable
Enclosing class:
MediaPlayer

public static enum MediaPlayer.State extends Enum<MediaPlayer.State>
Where a player is in its life.
  • Enum Constant Details

    • IDLE

      public static final MediaPlayer.State IDLE
      Built, or stopped: nothing is decoding and nothing is sounding.
    • PLAYING

      public static final MediaPlayer.State PLAYING
      Decoding, timing and handing out pictures.
    • PAUSED

      public static final MediaPlayer.State PAUSED
      Frozen: the clock is paused, the audio is paused, and the ring keeps filling.
    • ENDED

      public static final MediaPlayer.State ENDED
      The stream ended and every decoded picture has been handed out.
    • FAILED

      public static final MediaPlayer.State FAILED
      A decode threw. MediaPlayer.failure() has it; MediaPlayer.restart() clears it.
    • CLOSED

      public static final MediaPlayer.State CLOSED
      Closed. Nothing works afterwards, and the video stream is now the caller's to close.
  • Method Details

    • values

      public static MediaPlayer.State[] 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

      public static MediaPlayer.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null