Package org.red5.server.net.rtmp
Enum Class RTMPType
- All Implemented Interfaces:
Serializable
,Comparable<RTMPType>
,java.lang.constant.Constable
Enum for RTMP types.
- Author:
- 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 ConstantDescriptionThe specification refers to the following types by different names: 0x03 = Acknowledgement 0x04 = User control message 0x05 = Window Acknowledgement Size 0x06 = Set Peer Bandwidth 0x0f = AMF3 Data message 0x10 = AMF3 Shared object message 0x11 = AMF3 Command message 0x12 = AMF0 Data message 0x13 = AMF0 Shared object message 0x14 = AMF0 Command message ------------------------------------------------------------------- RTMFP related (here for reference) 0x30 Initiator hello 0x70 Responder hello 0x38 Initiator initial keying 0x78 Responder initial keying 0x0f Forwarded initiator hello 0x71 Forwarded hello response 0x10 Normal user data 0x11 Next user data 0x0c Session failed on client side 0x4c Session died 0x01 Causes response with 0x41, reset keep alive 0x41 Reset times keep alive 0x5e Negative ack 0x51 Some ack -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
getType()
static String
valueOf
(byte dataType) Returns the enum constant of this class with the specified name.static RTMPType
Returns the enum constant of this class with the specified name.static RTMPType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TYPE_CHUNK_SIZE
The specification refers to the following types by different names: 0x03 = Acknowledgement 0x04 = User control message 0x05 = Window Acknowledgement Size 0x06 = Set Peer Bandwidth 0x0f = AMF3 Data message 0x10 = AMF3 Shared object message 0x11 = AMF3 Command message 0x12 = AMF0 Data message 0x13 = AMF0 Shared object message 0x14 = AMF0 Command message ------------------------------------------------------------------- RTMFP related (here for reference) 0x30 Initiator hello 0x70 Responder hello 0x38 Initiator initial keying 0x78 Responder initial keying 0x0f Forwarded initiator hello 0x71 Forwarded hello response 0x10 Normal user data 0x11 Next user data 0x0c Session failed on client side 0x4c Session died 0x01 Causes response with 0x41, reset keep alive 0x41 Reset times keep alive 0x5e Negative ack 0x51 Some ack -
TYPE_ABORT
-
TYPE_BYTES_READ
-
TYPE_PING
-
TYPE_SERVER_BANDWIDTH
-
TYPE_CLIENT_BANDWIDTH
-
TYPE_EDGE_ORIGIN
-
TYPE_AUDIO_DATA
-
TYPE_VIDEO_DATA
-
TYPE_UNK1
-
TYPE_UNK2
-
TYPE_UNK3
-
TYPE_UNK4
-
TYPE_UNK5
-
TYPE_FLEX_STREAM_SEND
-
TYPE_FLEX_SHARED_OBJECT
-
TYPE_FLEX_MESSAGE
-
TYPE_NOTIFY
-
TYPE_SHARED_OBJECT
-
TYPE_INVOKE
-
TYPE_UNK6
-
TYPE_AGGREGATE
-
TYPE_UNK7
-
TYPE_UNK8
-
-
Field Details
-
type
private final byte type
-
-
Constructor Details
-
RTMPType
private RTMPType(byte type) -
RTMPType
private RTMPType(int type)
-
-
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
-
getType
public byte getType() -
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:
dataType
- 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
-