Class ThumbnailComponent

java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.player.mediacontroller.ThumbnailComponent
All Implemented Interfaces:
Component

@ListensFor(events={"didSetVideo","configurationChanged","restoreDefaultMediaController"}) @Emits(events={"thumbnailFormatSelected","seekControllerConfiguration"}) public final class ThumbnailComponent extends AbstractComponent
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)
     );
 });