Package org.red5.codec
Enum Class VideoCodec
- All Implemented Interfaces:
Serializable
,Comparable<VideoCodec>
,java.lang.constant.Constable
Video codecs that Red5 supports.
- Author:
- Art Clarke, Paul Gregoire (mondain@gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
getId()
Returns back a numeric id for this codec, that happens to correspond to the numeric identifier that FLV will use for this codec.static VideoCodec
Returns the enum constant of this class with the specified name.static VideoCodec[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JPEG
-
H263
-
SCREEN_VIDEO
-
VP6
-
VP6a
-
SCREEN_VIDEO2
-
AVC
-
HEVC
-
-
Field Details
-
id
private byte id
-
-
Constructor Details
-
VideoCodec
private VideoCodec(byte id)
-
-
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
-
getId
public byte getId()Returns back a numeric id for this codec, that happens to correspond to the numeric identifier that FLV will use for this codec.- Returns:
- the codec id
-