Package org.red5.codec
Enum Class AudioCodec
- All Implemented Interfaces:
Serializable
,Comparable<AudioCodec>
,Constable
Audio codecs that Red5 supports; which includes some RTMP-E specific codecs.
- 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
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet
<AudioCodec> Getter for the fieldconfigured
.int
Returns back a four character code for this codec.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 four character code for this codec.Returns a new instance of the codec.static AudioCodec
Returns the enum constant of this class with the specified name.static AudioCodec
valueOfByFourCc
(int fourcc) Returns back the codec that corresponds to the given four character code.static AudioCodec
valueOfById
(int id) Returns back the codec that corresponds to the given id.static AudioCodec[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PCM
-
ADPCM
-
MP3
-
PCM_LE
-
NELLY_MOSER_16K
-
NELLY_MOSER_8K
-
NELLY_MOSER
-
PCM_ALAW
-
PCM_MULAW
-
ExHeader
-
AAC
-
SPEEX
-
MP2
-
OPUS
-
MP3_8K
-
L16
-
AC3
-
EAC3
-
FLAC
-
-
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
-
newInstance
Returns a new instance of the codec.- Returns:
- codec implementation
-
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
-
getFourcc
public int getFourcc()Returns back a four character code for this codec.- Returns:
- the four character code
-
getMimeType
Returns the four character code for this codec.- Returns:
- a
String
object
-
valueOfById
Returns back the codec that corresponds to the given id.- Parameters:
id
- the id- Returns:
- the codec
-
valueOfByFourCc
Returns back the codec that corresponds to the given four character code.- Parameters:
fourcc
- the four character code- Returns:
- the codec
-
getConfigured
Getter for the field
configured
.- Returns:
- a
EnumSet
object
-