Class DefaultThumbnailDocument
- java.lang.Object
-
- com.brightcove.player.mediacontroller.DefaultThumbnailDocument
-
- All Implemented Interfaces:
ThumbnailDocument
public final class DefaultThumbnailDocument extends java.lang.Object implements ThumbnailDocument
The defaultThumbnailDocument
used in the Thumbnail plugin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultThumbnailDocument.StartTimeComparator
AComparator
used to sortTimedThumbnail
s based on their start time
-
Field Summary
-
Fields inherited from interface com.brightcove.player.mediacontroller.ThumbnailDocument
EMPTY
-
-
Constructor Summary
Constructors Constructor Description DefaultThumbnailDocument(java.util.List<TimedThumbnail> timedThumbnailList, TimedThumbnailFilter timedThumbnailFilter)
Instantiate a DefaultThumbnailDocument given a list ofTimedThumbnail
and aTimedThumbnailFilter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
TimedThumbnail
get(long timeInMillis)
Gets theTimedThumbnail
given the Video's playhead positionjava.util.List<TimedThumbnail>
getAll()
int
hashCode()
-
-
-
Constructor Detail
-
DefaultThumbnailDocument
public DefaultThumbnailDocument(@NonNull java.util.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 Detail
-
get
@NonNull public TimedThumbnail get(long timeInMillis)
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
@NonNull public java.util.List<TimedThumbnail> getAll()
- Specified by:
getAll
in interfaceThumbnailDocument
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-