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.
data
header
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, writeVariableData
getHeader, writeTo
public 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 RtmpPacket
java.io.IOException
protected void writeBody(java.io.OutputStream out) throws java.io.IOException
writeBody
in class RtmpPacket
java.io.IOException
protected byte[] array()
array
in class RtmpPacket
protected int size()
size
in class RtmpPacket