VideoTrackCapturerToBitmap

class VideoTrackCapturerToBitmap(appContext: Context, handler: Handler = Handler(Looper.getMainLooper())) : 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
constructor(appContext: Context, handler: Handler = Handler(Looper.getMainLooper()))

Types

Link copied to clipboard
fun interface Callback

Properties

Link copied to clipboard
open override var track: MediaStreamTrack?

Sets the track to capture.

Functions

Link copied to clipboard

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

Link copied to clipboard
fun release()