Class DefaultTimedThumbnailFilter
java.lang.Object
com.brightcove.player.mediacontroller.DefaultTimedThumbnailFilter
- All Implemented Interfaces:
TimedThumbnailFilter
Filters a given
ThumbnailDocument
alowing a maximum number of MAX_NUMBER_OF_TIMED_THUMBNAILS
TimedThumbnail
.
The TimedThumbnail
s are selected with the same distance from one another and its start and end time are updated to avoid gaps between them.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default number ofTimedThumbnail
allowed in aThumbnailDocument
Fields inherited from interface com.brightcove.player.mediacontroller.TimedThumbnailFilter
NO_FILTER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(List<TimedThumbnail> originalTimedThumbnailList) Receives the list ofTimedThumbnail
and iterates over all availableTimedThumbnail
and selects a sublist of it.
-
Field Details
-
MAX_NUMBER_OF_TIMED_THUMBNAILS
public static final int MAX_NUMBER_OF_TIMED_THUMBNAILSDefault number ofTimedThumbnail
allowed in aThumbnailDocument
- See Also:
-
-
Constructor Details
-
DefaultTimedThumbnailFilter
public DefaultTimedThumbnailFilter()
-
-
Method Details
-
filter
@NonNull public List<TimedThumbnail> filter(@NonNull List<TimedThumbnail> originalTimedThumbnailList) Description copied from interface:TimedThumbnailFilter
Receives the list ofTimedThumbnail
and iterates over all availableTimedThumbnail
and selects a sublist of it.- Specified by:
filter
in interfaceTimedThumbnailFilter
- Parameters:
originalTimedThumbnailList
- the list ofTimedThumbnail
to be filtered.- Returns:
- the filtered list of
TimedThumbnail
-