public final class SSAIThumbnailDocument extends java.lang.Object implements ThumbnailDocument
ThumbnailDocument
used in the SSAI plugin to better handle the relative playhead position
from the SeekBar and the absolute position values in an SSAI Video and its preview thumbnails.EMPTY
Constructor and Description |
---|
SSAIThumbnailDocument(ThumbnailDocument defaultThumbnailDocument,
Timeline timeline)
Creates an instance by wrapping an exising
ThumbnailDocument object, along with a Timeline
to calculate the absolute playhead position from the relative playhead position. |
Modifier and Type | Method and Description |
---|---|
TimedThumbnail |
get(long relativePosition)
Gets the
TimedThumbnail given the Video's playhead position |
java.util.List<TimedThumbnail> |
getAll() |
public SSAIThumbnailDocument(@NonNull ThumbnailDocument defaultThumbnailDocument, @NonNull Timeline timeline)
ThumbnailDocument
object, along with a Timeline
to calculate the absolute playhead position from the relative playhead position.defaultThumbnailDocument
- an existing ThumbnailDocument
implementationtimeline
- the SSAI Video's Timeline@NonNull public TimedThumbnail get(long relativePosition)
ThumbnailDocument
TimedThumbnail
given the Video's playhead positionget
in interface ThumbnailDocument
relativePosition
- the video playhead positionTimedThumbnail
or TimedThumbnail.EMPTY
if not found@NonNull public java.util.List<TimedThumbnail> getAll()
getAll
in interface ThumbnailDocument