Module one.jpro.platform.media
Package one.jpro.platform.media.recorder
Enum Class MediaRecorder.Status
- All Implemented Interfaces:
Serializable,Comparable<MediaRecorder.Status>,Constable
- Enclosing interface:
MediaRecorder
Media recorder status.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRecording is not occurring — it has either not been started yet, or it has been started and then stopped.Recording has been started, then paused, but not yet stopped or resumed.The media recorder is ready to record.Recording has been started. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<MediaRecorder.Status> Parses a JavaScript string and if the content is equals to one of the states, then return it wrapped inOptionalobject.static MediaRecorder.StatusReturns the enum constant of this class with the specified name.static MediaRecorder.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INACTIVE
Recording is not occurring — it has either not been started yet, or it has been started and then stopped. -
READY
The media recorder is ready to record. -
RECORDING
Recording has been started. -
PAUSED
Recording has been started, then paused, but not yet stopped or resumed.
-
-
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
-
fromJS
Parses a JavaScript string and if the content is equals to one of the states, then return it wrapped inOptionalobject.- Parameters:
jsStr- a javascript string- Returns:
- an
Optionalobject containing theMediaRecorder.Statusobject.
-