getThumbnail

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

Provides video stream preview image that can be shown to the user when seeking (VOD content only).

Parameters

positionMs

The video stream position (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.