Enum MediaState
- java.lang.Object
-
- java.lang.Enum<MediaState>
-
- nl.harm27.obs.websocket.api.constants.MediaState
-
- All Implemented Interfaces:
Serializable
,Comparable<MediaState>
public enum MediaState extends Enum<MediaState>
The media state of the provided source. States: `none`, `playing`, `opening`, `buffering`, `paused`, `stopped`, `ended`, `error`, `unknown`
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MediaState
valueOf(String name)
Returns the enum constant of this type with the specified name.static MediaState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final MediaState NONE
-
PLAYING
public static final MediaState PLAYING
-
OPENING
public static final MediaState OPENING
-
BUFFERING
public static final MediaState BUFFERING
-
PAUSED
public static final MediaState PAUSED
-
STOPPED
public static final MediaState STOPPED
-
ENDED
public static final MediaState ENDED
-
ERROR
public static final MediaState ERROR
-
UNKNOWN
public static final MediaState UNKNOWN
-
-
Method Detail
-
values
public static MediaState[] 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 (MediaState c : MediaState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediaState 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 nameNullPointerException
- if the argument is null
-
-