public interface PreviewLoader
TimedThumbnail
from a given ThumbnailDocument
and the playhead position,
into the ThumbnailView
.Modifier and Type | Field and Description |
---|---|
static PreviewLoader |
EMPTY
An Empty Preview Loader.
|
Modifier and Type | Method and Description |
---|---|
void |
loadPreview(ThumbnailView thumbnailView,
long playheadPosition,
long duration)
Given a playhead position, finds a
TimedThumbnail in the ThumbnailDocument set with
setThumbnailDocument(ThumbnailDocument) , and loads it into the ThumbnailView . |
void |
setThumbnailDocument(ThumbnailDocument thumbnailDocument)
|
static final PreviewLoader EMPTY
void setThumbnailDocument(@NonNull ThumbnailDocument thumbnailDocument)
thumbnailDocument
- the Thumbnail documentvoid loadPreview(@NonNull ThumbnailView thumbnailView, long playheadPosition, long duration)
TimedThumbnail
in the ThumbnailDocument
set with
setThumbnailDocument(ThumbnailDocument)
, and loads it into the ThumbnailView
.thumbnailView
- the view to load the preview thumbnail imageplayheadPosition
- the Video's playhead positionduration
- the Video's duration