Package 

Class NoDropVideoProcessor

  • All Implemented Interfaces:
    livekit.org.webrtc.CapturerObserver , livekit.org.webrtc.VideoProcessor

    
    public abstract class NoDropVideoProcessor
     implements VideoProcessor
                        

    When not connected to a room, the base VideoProcessor implementation will refuse to process frames as they will all be dropped (i.e. not sent).

    This implementation by default forces all frames to be processed regardless of publish status.

    Change allowDropping to true if you want to allow dropping of frames.

    • Method Summary

      Modifier and Type Method Description
      final Boolean getAllowDropping() If set to false, forces all frames to be processed regardless of publish status.
      final Unit setAllowDropping(Boolean allowDropping) If set to false, forces all frames to be processed regardless of publish status.
      Unit onFrameCaptured(VideoFrame frame, VideoProcessor.FrameAdaptationParameters parameters)
      • Methods inherited from class livekit.org.webrtc.VideoProcessor

        onCapturerStarted, onCapturerStopped, onFrameCaptured
      • Methods inherited from class io.livekit.android.room.track.video.NoDropVideoProcessor

        setSink
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoDropVideoProcessor

        NoDropVideoProcessor()
    • Method Detail

      • getAllowDropping

         final Boolean getAllowDropping()

        If set to false, forces all frames to be processed regardless of publish status. If set to true, frames will only be processed when the associated video track is published.

        By default, set to false.

      • setAllowDropping

         final Unit setAllowDropping(Boolean allowDropping)

        If set to false, forces all frames to be processed regardless of publish status. If set to true, frames will only be processed when the associated video track is published.

        By default, set to false.

      • onFrameCaptured

         Unit onFrameCaptured(VideoFrame frame, VideoProcessor.FrameAdaptationParameters parameters)