Package 

Interface PreviewLoader


  • 
    public interface PreviewLoader
    
                        

    The component responsible for loading TimedThumbnail from a given ThumbnailDocument and the playhead position, into the ThumbnailView.

    • Method Summary

      Modifier and Type Method Description
      abstract void setThumbnailDocument(@NonNull() ThumbnailDocument thumbnailDocument) Sets the ThumbnailDocument containing the TimedThumbnail corresponding to a particular com.brightcove.player.model.Video.
      abstract void loadPreview(@NonNull() ThumbnailView thumbnailView, long playheadPosition, long duration) Given a playhead position, finds a TimedThumbnail in the ThumbnailDocument set with setThumbnailDocument, and loads it into the ThumbnailView.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setThumbnailDocument

         abstract void setThumbnailDocument(@NonNull() ThumbnailDocument thumbnailDocument)

        Sets the ThumbnailDocument containing the TimedThumbnail corresponding to a particular com.brightcove.player.model.Video.

        Parameters:
        thumbnailDocument - the Thumbnail document
      • loadPreview

         abstract void loadPreview(@NonNull() ThumbnailView thumbnailView, long playheadPosition, long duration)

        Given a playhead position, finds a TimedThumbnail in the ThumbnailDocument set with setThumbnailDocument, and loads it into the ThumbnailView.

        Parameters:
        thumbnailView - the view to load the preview thumbnail image
        playheadPosition - the Video's playhead position
        duration - the Video's duration