Interface PreviewLoader
- All Known Implementing Classes:
DefaultPreviewLoader
public interface PreviewLoader
The component responsible for loading
TimedThumbnail from a given ThumbnailDocument and the playhead position,
into the ThumbnailView.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidloadPreview(ThumbnailView thumbnailView, long playheadPosition, long duration) Given a playhead position, finds aTimedThumbnailin theThumbnailDocumentset withsetThumbnailDocument(ThumbnailDocument), and loads it into theThumbnailView.voidsetThumbnailDocument(ThumbnailDocument thumbnailDocument)
-
Field Details
-
EMPTY
An Empty Preview Loader. None of its methods are implemented.
-
-
Method Details
-
setThumbnailDocument
- Parameters:
thumbnailDocument- the Thumbnail document
-
loadPreview
Given a playhead position, finds aTimedThumbnailin theThumbnailDocumentset withsetThumbnailDocument(ThumbnailDocument), and loads it into theThumbnailView.- Parameters:
thumbnailView- the view to load the preview thumbnail imageplayheadPosition- the Video's playhead positionduration- the Video's duration
-