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 (jojo@struktur.de)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Send keyframes, interframes and disposable interframes.static final int
Send keyframes and interframes.static final int
Send keyframes only.static final int
Send keyframes only and switch to SEND_INTERFRAMES later. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
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
-