Callback

interface Callback

Sink event callbacks.

All methods are called on the configured looper thread for that sink.

Functions

Link copied to clipboard
open fun onFrame(sink: RawVideoSink, frame: RawVideoSink.Frame)

Delivers a frame to the sink.

Link copied to clipboard
open fun onStart(sink: RawVideoSink, videoFormat: VideoFormat)

Notifies that the sink starts.

Link copied to clipboard
open fun onStop(sink: RawVideoSink)

Notifies that the sink stops.