org.red5.server.net.rtmp.event
public class AudioData extends BaseEvent implements IStreamData<AudioData>, IStreamPacket
IEvent.Type
Modifier and Type | Field and Description |
---|---|
protected IoBuffer |
data |
header, object, refcount, source, timestamp
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, SOURCE_TYPE_LIVE, SOURCE_TYPE_VOD, TYPE_ABORT, TYPE_AGGREGATE, TYPE_AUDIO_DATA, TYPE_BYTES_READ, TYPE_CHUNK_SIZE, TYPE_CLIENT_BANDWIDTH, TYPE_EDGE_ORIGIN, 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 and Description |
---|
AudioData()
Constructs a new AudioData.
|
AudioData(IoBuffer data) |
AudioData(IoBuffer data,
boolean copy)
Create audio data event with given data buffer
|
Modifier and Type | Method and Description |
---|---|
AudioData |
duplicate()
Duplicate this message / event.
|
IoBuffer |
getData()
Getter for property 'data'.
|
byte |
getDataType()
Getter for data type
|
void |
readExternal(ObjectInput in) |
protected void |
releaseInternal()
Release event
|
void |
setData(byte[] data) |
void |
setData(IoBuffer data) |
void |
setDataType(byte dataType) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
getHeader, getObject, getSource, getSourceType, getTimestamp, getType, hasSource, release, retain, setHeader, setSource, setSourceType, setTimestamp, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTimestamp
protected IoBuffer data
public AudioData()
public AudioData(IoBuffer data)
public AudioData(IoBuffer data, boolean copy)
data
- Audio datacopy
- true to use a copy of the data or false to use referencepublic byte getDataType()
getDataType
in interface IStreamPacket
getDataType
in interface IRTMPEvent
getDataType
in class BaseEvent
public void setDataType(byte dataType)
public IoBuffer getData()
getData
in interface IStreamPacket
getData
in interface IStreamData<AudioData>
public void setData(IoBuffer data)
public void setData(byte[] data)
protected void releaseInternal()
releaseInternal
in class BaseEvent
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BaseEvent
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseEvent
IOException
public AudioData duplicate() throws IOException, ClassNotFoundException
duplicate
in interface IStreamData<AudioData>
IOException
ClassNotFoundException
Copyright © 2006-2012 The Red5 Project