-
- All Implemented Interfaces:
-
livekit.org.webrtc.CapturerObserver,livekit.org.webrtc.VideoProcessor
public abstract class NoDropVideoProcessor implements VideoProcessorWhen 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.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanallowDropping
-
Constructor Summary
Constructors Constructor Description NoDropVideoProcessor()
-
Method Summary
Modifier and Type Method Description final BooleangetAllowDropping()If set to false, forces all frames to be processed regardless of publish status. final UnitsetAllowDropping(Boolean allowDropping)If set to false, forces all frames to be processed regardless of publish status. UnitonFrameCaptured(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
-
-
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)
-
-
-
-