ThumbnailPreviewImpl
class ThumbnailPreviewImpl(appContext: Context, endpointURL: String, videoDurationMs: Long, maxConcurrentThumbnailDownloads: Int, thumbnailPreviewConfig: ThumbnailPreviewConfig?, playerInitialPositionMs: Long) : ThumbnailPreview
Concrete implementation of the ThumbnailPreview interface for the Thumbnail Scrubbing feature of the player.
Parameters
maxConcurrentThumbnailDownloads
The maximum number of concurrent thumbnail downloads allowed. Also is the size of each sprite batch when prefetching. Default value is the number of available processors.
Constructors
Link copied to clipboard
constructor(appContext: Context, endpointURL: String, videoDurationMs: Long, maxConcurrentThumbnailDownloads: Int, thumbnailPreviewConfig: ThumbnailPreviewConfig?, playerInitialPositionMs: Long)
Creates a ThumbnailPreview instance
Functions
Link copied to clipboard
open suspend override fun getThumbnail(positionMs: Long, thumbnailHandler: (result: Bitmap?) -> Unit)