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

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    boolean
    canSendPacket(RTMPMessage message, long pending)
    Checks if a message may be sent to the subscriber.
    void
    Notify that a packet has been dropped.
    void
    Reset the frame dropper.
    void
    reset(int state)
    Reset the frame dropper to a given state.
    void
    Notify that a message has been sent.
  • Field Details

    • SEND_ALL

      static final int SEND_ALL
      Send keyframes, interframes and disposable interframes.
      See Also:
    • SEND_INTERFRAMES

      static final int SEND_INTERFRAMES
      Send keyframes and interframes.
      See Also:
    • SEND_KEYFRAMES

      static final int SEND_KEYFRAMES
      Send keyframes only.
      See Also:
    • SEND_KEYFRAMES_CHECK

      static final int SEND_KEYFRAMES_CHECK
      Send keyframes only and switch to SEND_INTERFRAMES later.
      See Also:
  • Method Details

    • canSendPacket

      boolean canSendPacket(RTMPMessage message, long pending)
      Checks if a message may be sent to the subscriber.
      Parameters:
      message - the message to check
      pending - the number of pending messages
      Returns:
       true
       
      if the packet may be sent, otherwise
       false
       
    • dropPacket

      void dropPacket(RTMPMessage message)
      Notify that a packet has been dropped.
      Parameters:
      message - the message that was dropped
    • sendPacket

      void sendPacket(RTMPMessage message)
      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