Package 

Class ThumbnailComponent

  • All Implemented Interfaces:
    com.brightcove.player.event.Component

    @ListensFor(events = {EventType.DID_SET_VIDEO})@Emits(events = {ThumbnailEventType.THUMBNAIL_FORMAT_SELECTED, EventType.SEEK_CONTROLLER_CONFIGURATION}) 
    public final class ThumbnailComponent
    extends AbstractComponent
                        

    Thumbnail Component Plugin.

    This plugin facilitates displaying preview thumbnail

    The main code to be implemented from this class:

    {@code * 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.

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

      • ThumbnailComponent

        ThumbnailComponent(BaseVideoView baseVideoView)
        Creates a new ThumbnailComponent instance with the BaseVideoView
        Parameters:
        baseVideoView - the Brightcove video view