|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.net.rtmp.event.BaseEvent
org.red5.server.net.rtmp.event.VideoData
public class VideoData
Video data event
Nested Class Summary | |
---|---|
static class |
VideoData.FrameType
Videoframe type |
Nested classes/interfaces inherited from interface org.red5.server.api.event.IEvent |
---|
IEvent.Type |
Field Summary | |
---|---|
protected IoBuffer |
data
Video data |
protected VideoData.FrameType |
frameType
Frame type, unknown by default |
Fields inherited from class org.red5.server.net.rtmp.event.BaseEvent |
---|
header, object, refcount, source, timestamp |
Constructor Summary | |
---|---|
VideoData()
Constructs a new VideoData. |
|
VideoData(IoBuffer data)
Create video data event with given data buffer |
|
VideoData(IoBuffer data,
boolean copy)
Create video data event with given data buffer |
Method Summary | |
---|---|
VideoData |
duplicate()
Duplicate this message / event. |
IoBuffer |
getData()
Getter for property 'data'. |
byte |
getDataType()
Getter for data type |
VideoData.FrameType |
getFrameType()
Getter for frame 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)
|
Methods inherited from class org.red5.server.net.rtmp.event.BaseEvent |
---|
getHeader, getObject, getSource, getSourceType, getTimestamp, getType, hasSource, release, retain, setHeader, setSource, setSourceType, setTimestamp, setType |
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 |
---|
protected IoBuffer data
protected VideoData.FrameType frameType
Constructor Detail |
---|
public VideoData()
public VideoData(IoBuffer data)
data
- Video datapublic VideoData(IoBuffer data, boolean copy)
data
- Video datacopy
- true to use a copy of the data or false to use referenceMethod Detail |
---|
public 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<VideoData>
public void setData(IoBuffer data)
public void setData(byte[] data)
public VideoData.FrameType getFrameType()
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 VideoData duplicate() throws IOException, ClassNotFoundException
duplicate
in interface IStreamData<VideoData>
IOException
ClassNotFoundException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |