public class AudioData extends BaseEvent implements IStreamData<AudioData>, IStreamPacket
IEvent.Type| Modifier and Type | Field and Description |
|---|---|
protected int |
codecId
The codec id
|
protected boolean |
config
True if this is configuration data and false otherwise
|
protected org.apache.mina.core.buffer.IoBuffer |
data |
header, log, object, refcount, source, sourceType, timestampHANDSHAKE_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(org.apache.mina.core.buffer.IoBuffer data) |
AudioData(org.apache.mina.core.buffer.IoBuffer data,
boolean copy)
Create audio data event with given data buffer
|
| Modifier and Type | Method and Description |
|---|---|
AudioData |
duplicate()
Duplicate this message / event.
|
int |
getCodecId() |
org.apache.mina.core.buffer.IoBuffer |
getData()
Getter for property 'data'.
|
byte |
getDataType()
Getter for data type
|
boolean |
isConfig() |
void |
readExternal(ObjectInput in) |
protected void |
releaseInternal()
Release event
|
void |
setData(byte[] data) |
void |
setData(org.apache.mina.core.buffer.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, setTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTimestampprotected org.apache.mina.core.buffer.IoBuffer data
protected int codecId
protected boolean config
public AudioData()
public AudioData(org.apache.mina.core.buffer.IoBuffer data)
public AudioData(org.apache.mina.core.buffer.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 IStreamPacketgetDataType in interface IRTMPEventgetDataType in class BaseEventpublic void setDataType(byte dataType)
public org.apache.mina.core.buffer.IoBuffer getData()
getData in interface IStreamPacketgetData in interface IStreamData<AudioData>public void setData(org.apache.mina.core.buffer.IoBuffer data)
public void setData(byte[] data)
public int getCodecId()
public boolean isConfig()
protected void releaseInternal()
releaseInternal in class BaseEventpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseEventIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseEventIOExceptionpublic AudioData duplicate() throws IOException, ClassNotFoundException
duplicate in interface IStreamData<AudioData>IOException - on errorClassNotFoundException - on class not foundCopyright © 2005–2017 Red5. All rights reserved.