org.red5.server.stream
public interface IFrameDropper
Modifier and Type | Field and Description |
---|---|
static int |
SEND_ALL
Send keyframes, interframes and disposable interframes.
|
static int |
SEND_INTERFRAMES
Send keyframes and interframes.
|
static int |
SEND_KEYFRAMES
Send keyframes only.
|
static int |
SEND_KEYFRAMES_CHECK
Send keyframes only and switch to SEND_INTERFRAMES later.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSendPacket(RTMPMessage message,
long pending)
Checks if a message may be sent to the subscriber.
|
void |
dropPacket(RTMPMessage message)
Notify that a packet has been dropped.
|
void |
reset()
Reset the frame dropper.
|
void |
reset(int state)
Reset the frame dropper to a given state.
|
void |
sendPacket(RTMPMessage message)
Notify that a message has been sent.
|
static final int SEND_ALL
static final int SEND_INTERFRAMES
static final int SEND_KEYFRAMES
static final int SEND_KEYFRAMES_CHECK
boolean canSendPacket(RTMPMessage message, long pending)
message
- the message to checkpending
- the number of pending messagestrue
if the packet may be sent, otherwise
false
void dropPacket(RTMPMessage message)
message
- the message that was droppedvoid sendPacket(RTMPMessage message)
message
- the message that was sentvoid reset()
void reset(int state)
state
- the state to reset the frame dropper toCopyright © 2006-2012 The Red5 Project