Package com.brightcove.ssai.ui
Class SSAIThumbnailDocument
java.lang.Object
com.brightcove.ssai.ui.SSAIThumbnailDocument
- All Implemented Interfaces:
ThumbnailDocument
A Wrapping
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.-
Field Summary
Fields inherited from interface com.brightcove.player.mediacontroller.ThumbnailDocument
EMPTY
-
Constructor Summary
ConstructorDescriptionSSAIThumbnailDocument
(ThumbnailDocument defaultThumbnailDocument, Timeline timeline) Creates an instance by wrapping an exisingThumbnailDocument
object, along with aTimeline
to calculate the absolute playhead position from the relative playhead position. -
Method Summary
Modifier and TypeMethodDescriptionget
(long relativePosition) Gets theTimedThumbnail
given the Video's playhead positiongetAll()
-
Constructor Details
-
SSAIThumbnailDocument
public SSAIThumbnailDocument(@NonNull ThumbnailDocument defaultThumbnailDocument, @NonNull Timeline timeline) Creates an instance by wrapping an exisingThumbnailDocument
object, along with aTimeline
to calculate the absolute playhead position from the relative playhead position.- Parameters:
defaultThumbnailDocument
- an existingThumbnailDocument
implementationtimeline
- the SSAI Video's Timeline
-
-
Method Details
-
get
Description copied from interface:ThumbnailDocument
Gets theTimedThumbnail
given the Video's playhead position- Specified by:
get
in interfaceThumbnailDocument
- Parameters:
relativePosition
- the video playhead position- Returns:
- a valid
TimedThumbnail
orTimedThumbnail.EMPTY
if not found
-
getAll
- Specified by:
getAll
in interfaceThumbnailDocument
-