org.red5.server.net.rtmp.codec
Class RTMPMinaProtocolDecoder

java.lang.Object
  extended by org.red5.server.net.rtmp.codec.RTMPProtocolDecoder
      extended by org.red5.server.net.rtmp.codec.RTMPMinaProtocolDecoder
All Implemented Interfaces:
ProtocolDecoder, SimpleProtocolDecoder, IEventDecoder, Constants

public class RTMPMinaProtocolDecoder
extends RTMPProtocolDecoder
implements ProtocolDecoder

RTMP protocol decoder.


Field Summary
 
Fields inherited from class org.red5.server.net.rtmp.codec.RTMPProtocolDecoder
ioLog, log
 
Fields inherited from interface org.red5.server.net.rtmp.message.Constants
ACTION_CLOSE_STREAM, ACTION_CONNECT, ACTION_CREATE_STREAM, ACTION_DELETE_STREAM, ACTION_DISCONNECT, ACTION_PAUSE, ACTION_PAUSE_RAW, ACTION_PLAY, ACTION_PUBLISH, ACTION_RECEIVE_AUDIO, ACTION_RECEIVE_VIDEO, ACTION_RELEASE_STREAM, ACTION_SEEK, ACTION_STOP, HANDSHAKE_SIZE, HEADER_CONTINUE, HEADER_NEW, HEADER_SAME_SOURCE, HEADER_TIMER_CHANGE, MEDIUM_INT_MAX, SO_CLIENT_CLEAR_DATA, SO_CLIENT_DELETE_DATA, SO_CLIENT_INITIAL_DATA, SO_CLIENT_SEND_MESSAGE, SO_CLIENT_STATUS, SO_CLIENT_UPDATE_ATTRIBUTE, SO_CLIENT_UPDATE_DATA, SO_CONNECT, SO_DELETE_ATTRIBUTE, SO_DISCONNECT, SO_SEND_MESSAGE, SO_SET_ATTRIBUTE, TYPE_AUDIO_DATA, TYPE_BYTES_READ, TYPE_CHUNK_SIZE, TYPE_CLIENT_BANDWIDTH, TYPE_FLEX_MESSAGE, TYPE_FLEX_SHARED_OBJECT, TYPE_FLEX_STREAM_SEND, TYPE_INVOKE, TYPE_NOTIFY, TYPE_PING, TYPE_SERVER_BANDWIDTH, TYPE_SHARED_OBJECT, TYPE_STREAM_METADATA, TYPE_VIDEO_DATA
 
Constructor Summary
RTMPMinaProtocolDecoder()
           
 
Method Summary
 void decode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, ProtocolDecoderOutput out)
          
 void dispose(org.apache.mina.core.session.IoSession ioSession)
          
 void finishDecode(org.apache.mina.core.session.IoSession session, ProtocolDecoderOutput out)
          
 
Methods inherited from class org.red5.server.net.rtmp.codec.RTMPProtocolDecoder
decode, decodeAudioData, decodeBuffer, decodeBytesRead, decodeChunkSize, decodeFlexMessage, decodeFlexSharedObject, decodeFlexStreamSend, decodeHandshake, decodeHeader, decodeInvoke, decodeMessage, decodeNotify, decodeNotify, decodeNotifyOrInvoke, decodePacket, decodePing, decodeSharedObject, decodeStreamMetadata, decodeUnknown, decodeVideoData, doDecodeSharedObject, setDeserializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTMPMinaProtocolDecoder

public RTMPMinaProtocolDecoder()
Method Detail

decode

public void decode(org.apache.mina.core.session.IoSession session,
                   org.apache.mina.core.buffer.IoBuffer in,
                   ProtocolDecoderOutput out)
            throws ProtocolCodecException

Specified by:
decode in interface ProtocolDecoder
Throws:
ProtocolCodecException

dispose

public void dispose(org.apache.mina.core.session.IoSession ioSession)
             throws Exception

Specified by:
dispose in interface ProtocolDecoder
Throws:
Exception

finishDecode

public void finishDecode(org.apache.mina.core.session.IoSession session,
                         ProtocolDecoderOutput out)
                  throws Exception

Specified by:
finishDecode in interface ProtocolDecoder
Throws:
Exception


Copyright © 2006-2009 The Red5 Project