Package org.red5.server.api.stream
Enum StreamState
- java.lang.Object
-
- java.lang.Enum<StreamState>
-
- org.red5.server.api.stream.StreamState
-
- All Implemented Interfaces:
Serializable
,Comparable<StreamState>
public enum StreamState extends Enum<StreamState>
Represents all the states that a stream may be in at a requested point in time.- Author:
- Paul Gregoire ([email protected])
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamState
valueOf(String name)
Returns the enum constant of this type with the specified name.static StreamState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final StreamState INIT
-
UNINIT
public static final StreamState UNINIT
-
OPEN
public static final StreamState OPEN
-
CLOSED
public static final StreamState CLOSED
-
STARTED
public static final StreamState STARTED
-
STOPPED
public static final StreamState STOPPED
-
PUBLISHING
public static final StreamState PUBLISHING
-
PLAYING
public static final StreamState PLAYING
-
PAUSED
public static final StreamState PAUSED
-
RESUMED
public static final StreamState RESUMED
-
END
public static final StreamState END
-
SEEK
public static final StreamState SEEK
-
-
Method Detail
-
values
public static StreamState[] 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 (StreamState c : StreamState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamState 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
-
-