Class DefaultThumbnailDocument
java.lang.Object
com.brightcove.player.mediacontroller.DefaultThumbnailDocument
- All Implemented Interfaces:
ThumbnailDocument
The default
ThumbnailDocument
used in the Thumbnail plugin.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AComparator
used to sortTimedThumbnail
s based on their start time -
Field Summary
Fields inherited from interface com.brightcove.player.mediacontroller.ThumbnailDocument
EMPTY
-
Constructor Summary
ConstructorDescriptionDefaultThumbnailDocument
(List<TimedThumbnail> timedThumbnailList, TimedThumbnailFilter timedThumbnailFilter) Instantiate a DefaultThumbnailDocument given a list ofTimedThumbnail
and aTimedThumbnailFilter
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
get
(long timeInMillis) Gets theTimedThumbnail
given the Video's playhead positiongetAll()
int
hashCode()
-
Constructor Details
-
DefaultThumbnailDocument
public DefaultThumbnailDocument(@NonNull List<TimedThumbnail> timedThumbnailList, @NonNull TimedThumbnailFilter timedThumbnailFilter) Instantiate a DefaultThumbnailDocument given a list ofTimedThumbnail
and aTimedThumbnailFilter
. To avoid filtering such a list, setTimedThumbnailFilter.NO_FILTER
- Parameters:
timedThumbnailList
- list ofTimedThumbnail
timedThumbnailFilter
- theTimedThumbnailFilter
-
-
Method Details
-
get
Description copied from interface:ThumbnailDocument
Gets theTimedThumbnail
given the Video's playhead position- Specified by:
get
in interfaceThumbnailDocument
- Parameters:
timeInMillis
- the video playhead position- Returns:
- a valid
TimedThumbnail
orTimedThumbnail.EMPTY
if not found
-
getAll
- Specified by:
getAll
in interfaceThumbnailDocument
-
equals
-
hashCode
public int hashCode()
-