Class DefaultTimedThumbnailFilter
- java.lang.Object
-
- com.brightcove.player.mediacontroller.DefaultTimedThumbnailFilter
-
- All Implemented Interfaces:
TimedThumbnailFilter
public class DefaultTimedThumbnailFilter extends java.lang.Object implements TimedThumbnailFilter
Filters a givenThumbnailDocument
alowing a maximum number ofMAX_NUMBER_OF_TIMED_THUMBNAILS
TimedThumbnail
. TheTimedThumbnail
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
Fields Modifier and Type Field Description static int
MAX_NUMBER_OF_TIMED_THUMBNAILS
Default number ofTimedThumbnail
allowed in aThumbnailDocument
-
Fields inherited from interface com.brightcove.player.mediacontroller.TimedThumbnailFilter
NO_FILTER
-
-
Constructor Summary
Constructors Constructor Description DefaultTimedThumbnailFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TimedThumbnail>
filter(java.util.List<TimedThumbnail> originalTimedThumbnailList)
Receives the list ofTimedThumbnail
and iterates over all availableTimedThumbnail
and selects a sublist of it.
-
-
-
Field Detail
-
MAX_NUMBER_OF_TIMED_THUMBNAILS
public static final int MAX_NUMBER_OF_TIMED_THUMBNAILS
Default number ofTimedThumbnail
allowed in aThumbnailDocument
- See Also:
- Constant Field Values
-
-
Method Detail
-
filter
@NonNull public java.util.List<TimedThumbnail> filter(@NonNull java.util.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
-
-