public interface AdSelectionStrategy
The concrete implementation is responsible to look for the ad pods between the start and end position, and then decide which of the Ads found must be played before seeking to the end seek position.
Modifier and Type | Method and 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.
|
@NonNull java.util.Queue<AdPod> selectAdPods(@NonNull Timeline timeline, long absoluteStartSeekPosition, long absoluteEndSeekPosition)
timeline
- the timelineabsoluteStartSeekPosition
- the absolute start seek positionabsoluteEndSeekPosition
- the absolute end seek position