org.red5.server.net.rtmp.event
Class AudioData

java.lang.Object
  extended by org.red5.server.net.rtmp.event.BaseEvent
      extended by org.red5.server.net.rtmp.event.AudioData
All Implemented Interfaces:
Externalizable, Serializable, IEvent, IStreamPacket, IRTMPEvent, Constants, IStreamData

public class AudioData
extends BaseEvent
implements IStreamData, IStreamPacket

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.red5.server.api.event.IEvent
IEvent.Type
 
Field Summary
protected  org.apache.mina.core.buffer.IoBuffer data
           
 
Fields inherited from class org.red5.server.net.rtmp.event.BaseEvent
header, object, refcount, source, timestamp
 
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
AudioData()
          Constructs a new AudioData.
AudioData(org.apache.mina.core.buffer.IoBuffer data)
           
 
Method Summary
 org.apache.mina.core.buffer.IoBuffer getData()
          Getter for property 'data'.
 byte getDataType()
          Getter for data type
 void readExternal(ObjectInput in)
           
protected  void releaseInternal()
          Rekease event
 void setDataType(byte dataType)
           
 String toString()
          
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.red5.server.net.rtmp.event.BaseEvent
getHeader, getObject, getSource, getTimestamp, getType, hasSource, release, retain, setHeader, setSource, setTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.red5.server.api.stream.IStreamPacket
getTimestamp
 

Field Detail

data

protected org.apache.mina.core.buffer.IoBuffer data
Constructor Detail

AudioData

public AudioData()
Constructs a new AudioData.


AudioData

public AudioData(org.apache.mina.core.buffer.IoBuffer data)
Method Detail

getDataType

public byte getDataType()
Getter for data type

Specified by:
getDataType in interface IStreamPacket
Specified by:
getDataType in interface IRTMPEvent
Specified by:
getDataType in class BaseEvent
Returns:
Data type

setDataType

public void setDataType(byte dataType)

getData

public org.apache.mina.core.buffer.IoBuffer getData()
Getter for property 'data'.

Specified by:
getData in interface IStreamPacket
Specified by:
getData in interface IStreamData
Returns:
Value for property 'data'.

toString

public String toString()

Overrides:
toString in class Object

releaseInternal

protected void releaseInternal()
Rekease event

Specified by:
releaseInternal in class BaseEvent

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class BaseEvent
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class BaseEvent
Throws:
IOException


Copyright © 2006-2009 The Red5 Project