Package limn.video

Enum Class MediaPlayer.Step

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

public static enum MediaPlayer.Step extends Enum<MediaPlayer.Step>
What one pass of the decode loop did: what a host driving it needs to know to pace itself.
  • Enum Constant Details

    • PRODUCED

      public static final MediaPlayer.Step PRODUCED
      A picture reached the ring. Call again straight away.
    • IDLE

      public static final MediaPlayer.Step IDLE
      Nothing to do this instant: the ring is full, or the stream has no picture ready. Wait.
    • DONE

      public static final MediaPlayer.Step DONE
      Nothing more is coming from where the stream is now: it ended, the player stopped, or a decode threw. Not permanent (a seek, or looping being switched on, makes production resume), so a host driving this itself waits and asks again rather than giving up its thread. Only MediaPlayer.close() ends it for good.
  • Method Details

    • values

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