|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.net.rtmp.codec.RTMPProtocolDecoder
public class RTMPProtocolDecoder
RTMP protocol decoder.
Field Summary | |
---|---|
protected Deserializer |
deserializer
Deserializer |
protected static Logger |
log
|
Constructor Summary | |
---|---|
RTMPProtocolDecoder()
Constructs a new RTMPProtocolDecoder. |
Method Summary | |
---|---|
Object |
decode(ProtocolState state,
IoBuffer in)
Decodes the buffer data |
IRTMPEvent |
decodeAbort(IoBuffer in)
|
Aggregate |
decodeAggregate(IoBuffer in)
Decodes the aggregated data. |
AudioData |
decodeAudioData(IoBuffer in)
Decodes audio data event. |
List<Object> |
decodeBuffer(ProtocolState state,
IoBuffer buffer)
Decode all available objects in buffer. |
BytesRead |
decodeBytesRead(IoBuffer in)
Decodes BytesRead event. |
ChunkSize |
decodeChunkSize(IoBuffer in)
Decodes chunk size event. |
FlexMessage |
decodeFlexMessage(IoBuffer in,
RTMP rtmp)
Decodes FlexMessage event. |
ISharedObjectMessage |
decodeFlexSharedObject(IoBuffer in,
RTMP rtmp)
Decodes shared object message event from AMF3 encoding. |
FlexStreamSend |
decodeFlexStreamSend(IoBuffer in)
|
IoBuffer |
decodeHandshake(RTMP rtmp,
IoBuffer in)
Decodes handshake message. |
Header |
decodeHeader(IoBuffer in,
Header lastHeader)
Decodes packet header. |
Invoke |
decodeInvoke(IoBuffer in,
RTMP rtmp)
Decodes invocation event. |
IRTMPEvent |
decodeMessage(RTMP rtmp,
Header header,
IoBuffer in)
Decodes RTMP message event. |
Notify |
decodeNotify(IoBuffer in,
Header header,
RTMP rtmp)
|
Notify |
decodeNotify(IoBuffer in,
RTMP rtmp)
Decodes notification event. |
protected Notify |
decodeNotifyOrInvoke(Notify notify,
IoBuffer in,
Header header,
RTMP rtmp)
Decodes notification event. |
Packet |
decodePacket(RTMP rtmp,
IoBuffer in)
Decodes packet. |
Ping |
decodePing(IoBuffer in)
Decodes ping event. |
ISharedObjectMessage |
decodeSharedObject(IoBuffer in,
RTMP rtmp)
Decodes shared object message event. |
Notify |
decodeStreamMetadata(IoBuffer in,
RTMP rtmp)
Decodes stream meta data, to include onMetaData, onCuePoint, and onFI. |
Unknown |
decodeUnknown(byte dataType,
IoBuffer in)
Decodes event of Unknown type. |
VideoData |
decodeVideoData(IoBuffer in)
Decodes video data event. |
protected void |
doDecodeSharedObject(SharedObjectMessage so,
IoBuffer in,
Input input)
Perform the actual decoding of the shared object contents. |
void |
setDeserializer(Deserializer deserializer)
Setter for deserializer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Logger log
protected Deserializer deserializer
Constructor Detail |
---|
public RTMPProtocolDecoder()
Method Detail |
---|
public void setDeserializer(Deserializer deserializer)
deserializer
- Deserializerpublic List<Object> decodeBuffer(ProtocolState state, IoBuffer buffer)
state
- Stores state for the protocolbuffer
- IoBuffer of data to be decoded
public Object decode(ProtocolState state, IoBuffer in) throws ProtocolException
state
- Stores state for the protocol, ProtocolState is just a marker
interfacein
- IoBuffer of data to be decoded
Exception
- on error
ProtocolException
public IoBuffer decodeHandshake(RTMP rtmp, IoBuffer in)
rtmp
- RTMP protocol statein
- IoBuffer
public Packet decodePacket(RTMP rtmp, IoBuffer in)
rtmp
- RTMP protocol statein
- IoBuffer
public Header decodeHeader(IoBuffer in, Header lastHeader)
in
- Input IoBufferlastHeader
- Previous header
public IRTMPEvent decodeMessage(RTMP rtmp, Header header, IoBuffer in)
rtmp
- RTMP protocol stateheader
- RTMP headerin
- Input IoBuffer
public IRTMPEvent decodeAbort(IoBuffer in)
public Unknown decodeUnknown(byte dataType, IoBuffer in)
decodeUnknown
in interface IEventDecoder
dataType
- Data typein
- Byte buffer to decode
public Aggregate decodeAggregate(IoBuffer in)
decodeAggregate
in interface IEventDecoder
in
- Byte buffer to decode
public ChunkSize decodeChunkSize(IoBuffer in)
decodeChunkSize
in interface IEventDecoder
in
- Byte buffer to decode
public ISharedObjectMessage decodeFlexSharedObject(IoBuffer in, RTMP rtmp)
decodeFlexSharedObject
in interface IEventDecoder
in
- Byte buffer to decodertmp
- RTMP protocol state
public ISharedObjectMessage decodeSharedObject(IoBuffer in, RTMP rtmp)
decodeSharedObject
in interface IEventDecoder
in
- Byte buffer to decodertmp
- RTMP protocol state
protected void doDecodeSharedObject(SharedObjectMessage so, IoBuffer in, Input input)
so
- in
- input
- public Notify decodeNotify(IoBuffer in, RTMP rtmp)
decodeNotify
in interface IEventDecoder
in
- Byte buffer to decodertmp
- RTMP protocol state
public Notify decodeNotify(IoBuffer in, Header header, RTMP rtmp)
public Invoke decodeInvoke(IoBuffer in, RTMP rtmp)
decodeInvoke
in interface IEventDecoder
in
- Byte buffer to decodertmp
- RTMP protocol state
protected Notify decodeNotifyOrInvoke(Notify notify, IoBuffer in, Header header, RTMP rtmp)
notify
- Notify eventin
- Byte bufferheader
- Headerrtmp
- RTMP protocol state
public Ping decodePing(IoBuffer in)
decodePing
in interface IEventDecoder
in
- IoBuffer
public BytesRead decodeBytesRead(IoBuffer in)
decodeBytesRead
in interface IEventDecoder
in
- Byte buffer to decode
public AudioData decodeAudioData(IoBuffer in)
decodeAudioData
in interface IEventDecoder
in
- Byte buffer to decode
public VideoData decodeVideoData(IoBuffer in)
decodeVideoData
in interface IEventDecoder
in
- Byte buffer to decode
public Notify decodeStreamMetadata(IoBuffer in, RTMP rtmp)
in
- rtmp
-
public FlexMessage decodeFlexMessage(IoBuffer in, RTMP rtmp)
decodeFlexMessage
in interface IEventDecoder
in
- IoBufferrtmp
- RTMP protocol state
public FlexStreamSend decodeFlexStreamSend(IoBuffer in)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |