ThumbnailComponent

Thumbnail Component Plugin.

This plugin facilitates displaying preview thumbnail

The main code to be implemented from this class:


ThumbnailComponent thumbnailComponent = new ThumbnailComponent(brightcoveVideoView);
thumbnailComponent.setupPreviewThumbnailController();
...

If you are also using the SSAI plugin, you will need additional setup to account for the gap between the absolute and relative playhead position introduced by the Ad breaks.


eventEmitter.once(AD_DATA_READY, event -> {
    Timeline timeline = event.getProperty(SSAIEvent.VMAP_TIMELINE, Timeline.class);
    thumbnailComponent.setThumbnailDocumentCreator(
            new SSAIThumbnailDocumentCreatorWrapper(new DefaultThumbnailDocumentCreator(), timeline)
    );
});

Constructors

Link copied to clipboard
constructor(baseVideoView: BaseVideoView)
Creates a new ThumbnailComponent instance with the BaseVideoView

Functions

Link copied to clipboard
Gets the PreviewLoader responsible to download the images and load them into the Thumbnail View.
Link copied to clipboard
open fun getThumbnailDocumentCreator(): ThumbnailDocumentCreator
Returns the ThumbnailDocumentCreator
Link copied to clipboard
open fun setPreviewLoader(previewLoader: PreviewLoader)
Sets a PreviewLoader responsible to download the images and load them into the Thumbnail View.
Link copied to clipboard
open fun setThumbnailDocumentCreator(thumbnailDocumentCreator: ThumbnailDocumentCreator)
Sets the ThumbnailDocumentCreator for creating the ThumbnailDocument
Link copied to clipboard
Sets the PreviewThumbnailFormatSelector, used to select a PreviewThumbnailFormat to create our ThumbnailDocument.
Link copied to clipboard
Finish setting up the component to support Preview Thumbnail scrubbing.