public class RTMPDecodeState extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
DECODER_BUFFER
Decoder is buffering state constant.
|
static byte |
DECODER_CONTINUE
Decoding continues state constant.
|
static byte |
DECODER_OK
Decoding finished successfully state constant.
|
String |
sessionId
Session id to which this decoding state belongs.
|
| Constructor and Description |
|---|
RTMPDecodeState(String sessionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferDecoding(int amount)
Specifies buffer decoding amount
|
boolean |
canContinueDecoding()
Checks whether decoding process can be continued.
|
boolean |
canStartDecoding(int remaining)
Checks whether remaining buffer size is greater or equal than buffer amount and so if it makes sense to start decoding.
|
void |
continueDecoding()
Set decoding state as "needed to be continued".
|
int |
getDecoderBufferAmount()
Returns current buffer amount.
|
String |
getSessionId() |
boolean |
hasDecodedObject()
Checks whether decoding is complete.
|
void |
startDecoding()
Starts decoding.
|
String |
toString() |
public static byte DECODER_OK
public static byte DECODER_CONTINUE
public static byte DECODER_BUFFER
public final String sessionId
public RTMPDecodeState(String sessionId)
public int getDecoderBufferAmount()
public void bufferDecoding(int amount)
amount - Buffer decoding amountpublic void continueDecoding()
public boolean canStartDecoding(int remaining)
remaining - Remaining buffer sizepublic void startDecoding()
public boolean hasDecodedObject()
public boolean canContinueDecoding()
public String getSessionId()
Copyright © 2005–2017 Red5. All rights reserved.