DefaultPreviewLoader

The default PreviewLoader used in the Thumbnail plugin. It uses Picasso to request and load the images into the ThumbnailView.

Use createDefault to create an instance with the default configuration, or use DefaultPreviewLoader.Builder to configure it differently.

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard
Default number of preview thumbnail images to prefetch
Link copied to clipboard
An Empty Preview Loader.

Functions

Link copied to clipboard
open fun createDefault(context: Context): DefaultPreviewLoader
Creates a DefaultPreviewLoader instance with the default configuration
Link copied to clipboard
open fun loadPreview(thumbnailView: ThumbnailView, seekBarPosition: Long, seekBarMax: Long)
Given a playhead position, finds a TimedThumbnail in the ThumbnailDocument set with setThumbnailDocument, and loads it into the ThumbnailView.
Link copied to clipboard
open fun setThumbnailDocument(thumbnailDocument: ThumbnailDocument)
Sets the ThumbnailDocument containing the TimedThumbnail corresponding to a particular com.brightcove.player.model.