getThumbnail

abstract suspend fun getThumbnail(positionMs: Long, thumbnailHandler: (result: Bitmap?) -> Unit)

Returns the thumbnail as Bitmap for the given position of the scrubber.

Parameters

positionMs

Long The position of the scrubber in milliseconds.

thumbnailHandler

The handler for thumbnail fetching. The handler caller is passed the preview image Bitmap for a given video stream position or null if the image data is not available. WARNING: The handler should not be used to update the UI directly.