Enum Class MediaRecorder.Status

java.lang.Object
java.lang.Enum<MediaRecorder.Status>
one.jpro.platform.media.recorder.MediaRecorder.Status
All Implemented Interfaces:
Serializable, Comparable<MediaRecorder.Status>, Constable
Enclosing interface:
MediaRecorder

public static enum MediaRecorder.Status extends Enum<MediaRecorder.Status>
Media recorder status.
  • Enum Constant Details

    • INACTIVE

      public static final MediaRecorder.Status INACTIVE
      Recording is not occurring — it has either not been started yet, or it has been started and then stopped.
    • READY

      public static final MediaRecorder.Status READY
      The media recorder is ready to record.
    • RECORDING

      public static final MediaRecorder.Status RECORDING
      Recording has been started.
    • PAUSED

      public static final MediaRecorder.Status PAUSED
      Recording has been started, then paused, but not yet stopped or resumed.
  • Method Details

    • values

      public static MediaRecorder.Status[] 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 MediaRecorder.Status 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
    • fromJS

      public static Optional<MediaRecorder.Status> fromJS(String jsStr)
      Parses a JavaScript string and if the content is equals to one of the states, then return it wrapped in Optional object.
      Parameters:
      jsStr - a javascript string
      Returns:
      an Optional object containing the MediaRecorder.Status object.