public class RTMPMessage
extends java.lang.Object
| Constructor and Description |
|---|
RTMPMessage(int messageType,
AMFType[] values)
Creates an RTMP packet with the given RTMP type and the supplied arguments on AMF channel 3, stream nr.
|
RTMPMessage(int channel,
int stream,
int messageType,
AMFType[] values)
Creates an RTMP packet on the given AMF channel number (lower 5 bits of first headerbyte) and with the
given streamnumber in the last 4 header bytes.
|
RTMPMessage(int channel,
int stream,
int messageType,
AMFType[] values,
int chunkSize)
Creates an RTMP packet on the given AMF channel number (lower 5 bits of first headerbyte) and with the
given streamnumber in the last 4 header bytes, overwriting the default 128 byte chunk size.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toByteArray()
Serializes the message.
|
public RTMPMessage(int messageType,
AMFType[] values)
public RTMPMessage(int channel,
int stream,
int messageType,
AMFType[] values)
public RTMPMessage(int channel,
int stream,
int messageType,
AMFType[] values,
int chunkSize)