VideoTrackCapturerToBitmap

class VideoTrackCapturerToBitmap(appContext: Context, handler: Handler) : MediaTrackSink

Captures individual frames from a video track when requested.

The track can be selected by setting the track property of this object.

Constructors

Link copied to clipboard
fun VideoTrackCapturerToBitmap(appContext: Context, handler: Handler = Handler(Looper.getMainLooper()))

Types

Link copied to clipboard
fun interface Callback

Functions

Link copied to clipboard
fun captureFrame(callback: VideoTrackCapturerToBitmap.Callback)

Captures a single frame and passes it to the specified callback.

Link copied to clipboard
fun release()

Properties

Link copied to clipboard
open override var track: MediaStreamTrack?

Sets the track to capture.