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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
loadPreview
(ThumbnailView thumbnailView, long playheadPosition, long duration) Given a playhead position, finds aTimedThumbnail
in theThumbnailDocument
set withsetThumbnailDocument(ThumbnailDocument)
, and loads it into theThumbnailView
.void
setThumbnailDocument
(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 aTimedThumbnail
in theThumbnailDocument
set 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
-