-
- All Implemented Interfaces:
-
livekit.org.webrtc.CapturerObserver,livekit.org.webrtc.VideoProcessor
public abstract class ChainVideoProcessor implements VideoProcessorA VideoProcessor that can be chained together.
Child classes should propagate frames down to the next link through continueChain.
-
-
Field Summary
Fields Modifier and Type Field Description private VideoSinkvideoSinkprivate VideoProcessorchildVideoProcessor
-
Constructor Summary
Constructors Constructor Description ChainVideoProcessor()
-
Method Summary
Modifier and Type Method Description final VideoSinkgetVideoSink()The video sink where frames that have been completely processed are sent. final UnitsetVideoSink(VideoSink videoSink)final VideoProcessorgetChildVideoProcessor()The next link in the chain to feed frames to. final UnitsetChildVideoProcessor(VideoProcessor childVideoProcessor)UnitonCapturerStarted(Boolean started)UnitonCapturerStopped()final UnitsetSink(VideoSink videoSink)-
Methods inherited from class io.livekit.android.room.track.video.ChainVideoProcessor
onFrameCaptured -
Methods inherited from class livekit.org.webrtc.VideoProcessor
onFrameCaptured -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getVideoSink
final VideoSink getVideoSink()
The video sink where frames that have been completely processed are sent.
-
setVideoSink
final Unit setVideoSink(VideoSink videoSink)
-
getChildVideoProcessor
final VideoProcessor getChildVideoProcessor()
The next link in the chain to feed frames to.
Setting childVideoProcessor to null will mean that this is object the end of the chain, and processed frames are ready to be published.
-
setChildVideoProcessor
final Unit setChildVideoProcessor(VideoProcessor childVideoProcessor)
-
onCapturerStarted
@CallSuper() Unit onCapturerStarted(Boolean started)
-
onCapturerStopped
@CallSuper() Unit onCapturerStopped()
-
-
-
-