public class Data extends VariableBodyRtmpPacket
Also known as NOTIFY in some RTMP implementations.
The client or the server sends this message to send Metadata or any user data to the peer. Metadata includes details about the data (audio, video etc.) like creation time, duration, theme and so on.
dataheader| Constructor and Description |
|---|
Data(RtmpHeader header) |
Data(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
array() |
java.lang.String |
getType() |
void |
readBody(java.io.InputStream in) |
void |
setType(java.lang.String type) |
protected int |
size() |
protected void |
writeBody(java.io.OutputStream out)
This method is public for Data to make it easy to dump its contents to
another output stream
|
addData, addData, addData, addData, getData, readVariableData, writeVariableDatagetHeader, writeTopublic Data(RtmpHeader header)
public Data(java.lang.String type)
public java.lang.String getType()
public void setType(java.lang.String type)
public void readBody(java.io.InputStream in)
throws java.io.IOException
readBody in class RtmpPacketjava.io.IOExceptionprotected void writeBody(java.io.OutputStream out)
throws java.io.IOException
writeBody in class RtmpPacketjava.io.IOExceptionprotected byte[] array()
array in class RtmpPacketprotected int size()
size in class RtmpPacket