org.red5.server.net.rtmp.codec
public class RTMP extends ProtocolState
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CHUNK_SIZE
Default chunk size.
|
static byte |
STATE_CONNECT
Connect state.
|
static byte |
STATE_CONNECTED
Connected.
|
static byte |
STATE_DISCONNECTED
Disconnected.
|
static byte |
STATE_DISCONNECTING
In the processing of disconnecting
|
static byte |
STATE_EDGE_CONNECT_ORIGIN_SENT
Sent the connect message to origin.
|
static byte |
STATE_EDGE_DISCONNECTING
Edge is disconnecting, waiting Origin close connection.
|
static byte |
STATE_ERROR
Error.
|
static byte |
STATE_HANDSHAKE
Handshake state.
|
static byte |
STATE_ORIGIN_CONNECT_FORWARDED
Forwarded client's connect call to origin.
|
String[] |
states |
DECODER_BUFFER, DECODER_CONTINUE, DECODER_OK, SESSION_KEY
Constructor and Description |
---|
RTMP()
Creates RTMP object; essentially for storing session information.
|
Modifier and Type | Method and Description |
---|---|
IConnection.Encoding |
getEncoding()
Getter for encoding version.
|
Integer |
getLastFullTimestampWritten(int channelId) |
int |
getLastReadChannel()
Return channel being read last.
|
Header |
getLastReadHeader(int channelId)
Return last read header for channel.
|
Packet |
getLastReadPacket(int channelId)
Return last read packet for channel.
|
Header |
getLastReadPacketHeader(int channelId) |
int |
getLastWriteChannel()
Getter for channel being written last.
|
Header |
getLastWriteHeader(int channelId)
Return last written header for channel.
|
Packet |
getLastWritePacket(int channelId)
Return packet that has been written last.
|
int |
getReadChunkSize()
Getter for write chunk size.
|
byte |
getState()
Return current state.
|
int |
getWriteChunkSize()
Getter for write chunk size.
|
boolean |
isDebug()
Getter for debug.
|
boolean |
isEncrypted() |
void |
setDebug(boolean debug)
Setter for debug.
|
void |
setEncoding(IConnection.Encoding encoding)
Setter for encoding version.
|
void |
setEncrypted(boolean encrypted) |
void |
setLastFullTimestampWritten(int channelId,
int timer) |
void |
setLastReadHeader(int channelId,
Header header)
Setter for last read header.
|
void |
setLastReadPacket(int channelId,
Packet packet)
Setter for last read packet.
|
void |
setLastReadPacketHeader(int channelId,
Header header) |
void |
setLastWriteHeader(int channelId,
Header header)
Setter for last written header.
|
void |
setLastWritePacket(int channelId,
Packet packet)
Setter for last written packet.
|
void |
setReadChunkSize(int readChunkSize)
Setter for read chunk size.
|
void |
setState(byte state)
Setter for state.
|
void |
setWriteChunkSize(int writeChunkSize)
Setter for write chunk size.
|
String |
toString() |
bufferDecoding, canContinueDecoding, canStartDecoding, continueDecoding, getDecoderBufferAmount, hasDecodedObject, startDecoding
public String[] states
public static final byte STATE_CONNECT
public static final byte STATE_HANDSHAKE
public static final byte STATE_CONNECTED
public static final byte STATE_ERROR
public static final byte STATE_DISCONNECTING
public static final byte STATE_DISCONNECTED
public static final byte STATE_EDGE_CONNECT_ORIGIN_SENT
public static final byte STATE_ORIGIN_CONNECT_FORWARDED
public static final byte STATE_EDGE_DISCONNECTING
public static final int DEFAULT_CHUNK_SIZE
public RTMP()
public boolean isDebug()
public void setDebug(boolean debug)
debug
- Debug flag new valuepublic boolean isEncrypted()
public void setEncrypted(boolean encrypted)
encrypted
- the encrypted to setpublic byte getState()
public void setState(byte state)
state
- New statepublic void setLastReadHeader(int channelId, Header header)
channelId
- Channel idheader
- Headerpublic Header getLastReadHeader(int channelId)
channelId
- Channel idpublic void setLastWriteHeader(int channelId, Header header)
channelId
- Channel idheader
- Headerpublic Header getLastWriteHeader(int channelId)
channelId
- Channel idpublic void setLastReadPacket(int channelId, Packet packet)
channelId
- Channel idpacket
- Packetpublic Packet getLastReadPacket(int channelId)
channelId
- Channel idpublic void setLastWritePacket(int channelId, Packet packet)
channelId
- Channel idpacket
- Last written packetpublic Packet getLastWritePacket(int channelId)
channelId
- Channel idpublic int getLastReadChannel()
public int getLastWriteChannel()
public int getReadChunkSize()
public void setReadChunkSize(int readChunkSize)
readChunkSize
- Value to set for property 'readChunkSize'.public int getWriteChunkSize()
public void setWriteChunkSize(int writeChunkSize)
writeChunkSize
- Write chunk sizepublic IConnection.Encoding getEncoding()
public void setEncoding(IConnection.Encoding encoding)
encoding
- Encoding versionpublic void setLastFullTimestampWritten(int channelId, int timer)
public Integer getLastFullTimestampWritten(int channelId)
public void setLastReadPacketHeader(int channelId, Header header)
public Header getLastReadPacketHeader(int channelId)
Copyright © 2006-2012 The Red5 Project