|
||||||||||
| 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 static Logger |
ioLog
I/O logger. |
protected static Logger |
log
Logger. |
| Constructor Summary | |
|---|---|
RTMPProtocolDecoder()
Constructs a new RTMPProtocolDecoder. |
|
| Method Summary | |
|---|---|
Object |
decode(ProtocolState state,
IoBuffer in)
Decodes byte buffer. |
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)
|
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 static Logger ioLog
| Constructor Detail |
|---|
public RTMPProtocolDecoder()
| Method Detail |
|---|
public void setDeserializer(Deserializer deserializer)
deserializer - Deserializer
public List<Object> decodeBuffer(ProtocolState state,
IoBuffer buffer)
decodeBuffer in interface SimpleProtocolDecoderstate - Stores state for the protocolbuffer - IoBuffer of data to be decoded
public Object decode(ProtocolState state,
IoBuffer in)
throws ProtocolException
decode in interface SimpleProtocolDecoderstate - Protocol statein - Input byte buffer
ProtocolException - Exception during decoding
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 Unknown decodeUnknown(byte dataType,
IoBuffer in)
decodeUnknown in interface IEventDecoderdataType - Data typein - Byte buffer to decode
public ChunkSize decodeChunkSize(IoBuffer in)
decodeChunkSize in interface IEventDecoderin - Byte buffer to decode
public ISharedObjectMessage decodeFlexSharedObject(IoBuffer in,
RTMP rtmp)
decodeFlexSharedObject in interface IEventDecoderin - Byte buffer to decodertmp - RTMP protocol state
public ISharedObjectMessage decodeSharedObject(IoBuffer in,
RTMP rtmp)
decodeSharedObject in interface IEventDecoderin - 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 IEventDecoderin - 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 IEventDecoderin - 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 IEventDecoderin - IoBuffer
public BytesRead decodeBytesRead(IoBuffer in)
decodeBytesRead in interface IEventDecoderin - Byte buffer to decode
public AudioData decodeAudioData(IoBuffer in)
decodeAudioData in interface IEventDecoderin - Byte buffer to decode
public VideoData decodeVideoData(IoBuffer in)
decodeVideoData in interface IEventDecoderin - Byte buffer to decode
public Notify decodeStreamMetadata(IoBuffer in)
public FlexMessage decodeFlexMessage(IoBuffer in,
RTMP rtmp)
decodeFlexMessage in interface IEventDecoderin - 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 | |||||||||