Package com.brightcove.ssai.seek
Class LastAdSeekStrategy
- java.lang.Object
-
- com.brightcove.ssai.seek.LastAdSeekStrategy
-
- All Implemented Interfaces:
AdSelectionStrategy
public class LastAdSeekStrategy extends java.lang.Object implements AdSelectionStrategy
Selects the last Ad found between the start and end position.
-
-
Constructor Summary
Constructors Constructor Description LastAdSeekStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Queue<AdPod>selectAdPods(Timeline timeline, long absoluteStartSeekPosition, long absoluteEndSeekPosition)Selects which ad pods must be played from those found between start seek position and end seek position.
-
-
-
Method Detail
-
selectAdPods
@NonNull public java.util.Queue<AdPod> selectAdPods(@NonNull Timeline timeline, long absoluteStartSeekPosition, long absoluteEndSeekPosition)
Description copied from interface:AdSelectionStrategySelects which ad pods must be played from those found between start seek position and end seek position.- Specified by:
selectAdPodsin interfaceAdSelectionStrategy- Parameters:
timeline- the timelineabsoluteStartSeekPosition- the absolute start seek positionabsoluteEndSeekPosition- the absolute end seek position- Returns:
- the queue
-
-