Interface PreviewLoader
-
- All Known Implementing Classes:
DefaultPreviewLoader
public interface PreviewLoader
The component responsible for loadingTimedThumbnail
from a givenThumbnailDocument
and the playhead position, into theThumbnailView
.
-
-
Field Summary
Fields Modifier and Type Field Description static PreviewLoader
EMPTY
An Empty Preview Loader.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
EMPTY
static final PreviewLoader EMPTY
An Empty Preview Loader. None of its methods are implemented.
-
-
Method Detail
-
setThumbnailDocument
void setThumbnailDocument(@NonNull ThumbnailDocument thumbnailDocument)
- Parameters:
thumbnailDocument
- the Thumbnail document
-
loadPreview
void loadPreview(@NonNull ThumbnailView thumbnailView, long playheadPosition, long duration)
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
-
-