Package org.red5.server.stream
Interface IFrameDropper
- All Known Implementing Classes:
VideoFrameDropper
public interface IFrameDropper
Interface for classes that implement logic to drop frames.
- Author:
- The Red5 Project, Joachim Bauch ([email protected])
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSend keyframes, interframes and disposable interframes.static final intSend keyframes and interframes.static final intSend keyframes only.static final intSend keyframes only and switch to SEND_INTERFRAMES later. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSendPacket(RTMPMessage message, long pending) Checks if a message may be sent to the subscriber.voiddropPacket(RTMPMessage message) Notify that a packet has been dropped.voidreset()Reset the frame dropper.voidreset(int state) Reset the frame dropper to a given state.voidsendPacket(RTMPMessage message) Notify that a message has been sent.
-
Field Details
-
SEND_ALL
static final int SEND_ALLSend keyframes, interframes and disposable interframes.- See Also:
-
SEND_INTERFRAMES
static final int SEND_INTERFRAMESSend keyframes and interframes.- See Also:
-
SEND_KEYFRAMES
static final int SEND_KEYFRAMESSend keyframes only.- See Also:
-
SEND_KEYFRAMES_CHECK
static final int SEND_KEYFRAMES_CHECKSend keyframes only and switch to SEND_INTERFRAMES later.- See Also:
-
-
Method Details
-
canSendPacket
Checks if a message may be sent to the subscriber.- Parameters:
message- the message to checkpending- the number of pending messages- Returns:
true
if the packet may be sent, otherwisefalse
-
dropPacket
Notify that a packet has been dropped.- Parameters:
message- the message that was dropped
-
sendPacket
Notify that a message has been sent.- Parameters:
message- the message that was sent
-
reset
void reset()Reset the frame dropper. -
reset
void reset(int state) Reset the frame dropper to a given state.- Parameters:
state- the state to reset the frame dropper to
-