org.red5.server.net.rtmp
Enum RTMPType
java.lang.Object
java.lang.Enum<RTMPType>
org.red5.server.net.rtmp.RTMPType
- All Implemented Interfaces:
- Serializable, Comparable<RTMPType>
public enum RTMPType
- extends Enum<RTMPType>
Enum for RTMP types.
- Author:
- Paul Gregoire ([email protected])
Method Summary |
byte |
getType()
|
static String |
valueOf(byte dataType)
|
static RTMPType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RTMPType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
TYPE_CHUNK_SIZE
public static final RTMPType 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
public static final RTMPType TYPE_ABORT
TYPE_BYTES_READ
public static final RTMPType TYPE_BYTES_READ
TYPE_PING
public static final RTMPType TYPE_PING
TYPE_SERVER_BANDWIDTH
public static final RTMPType TYPE_SERVER_BANDWIDTH
TYPE_CLIENT_BANDWIDTH
public static final RTMPType TYPE_CLIENT_BANDWIDTH
TYPE_EDGE_ORIGIN
public static final RTMPType TYPE_EDGE_ORIGIN
TYPE_AUDIO_DATA
public static final RTMPType TYPE_AUDIO_DATA
TYPE_VIDEO_DATA
public static final RTMPType TYPE_VIDEO_DATA
TYPE_UNK1
public static final RTMPType TYPE_UNK1
TYPE_UNK2
public static final RTMPType TYPE_UNK2
TYPE_UNK3
public static final RTMPType TYPE_UNK3
TYPE_UNK4
public static final RTMPType TYPE_UNK4
TYPE_UNK5
public static final RTMPType TYPE_UNK5
TYPE_FLEX_STREAM_SEND
public static final RTMPType TYPE_FLEX_STREAM_SEND
TYPE_FLEX_SHARED_OBJECT
public static final RTMPType TYPE_FLEX_SHARED_OBJECT
TYPE_FLEX_MESSAGE
public static final RTMPType TYPE_FLEX_MESSAGE
TYPE_NOTIFY
public static final RTMPType TYPE_NOTIFY
TYPE_SHARED_OBJECT
public static final RTMPType TYPE_SHARED_OBJECT
TYPE_INVOKE
public static final RTMPType TYPE_INVOKE
TYPE_UNK6
public static final RTMPType TYPE_UNK6
TYPE_AGGREGATE
public static final RTMPType TYPE_AGGREGATE
TYPE_UNK7
public static final RTMPType TYPE_UNK7
TYPE_UNK8
public static final RTMPType TYPE_UNK8
values
public static RTMPType[] 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 (RTMPType c : RTMPType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RTMPType 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 name
NullPointerException
- if the argument is null
getType
public byte getType()
valueOf
public static String valueOf(byte dataType)
Copyright © 2006-2012 The Red5 Project