Class LastAdSeekStrategy

All Implemented Interfaces:

public class LastAdSeekStrategy extends Object implements AdSelectionStrategy
Selects the last Ad found between the start and end position.
  • Constructor Details

    • LastAdSeekStrategy

      public LastAdSeekStrategy()
  • Method Details

    • selectAdPods

      @NonNull public Queue<AdPod> selectAdPods(@NonNull Timeline timeline, long absoluteStartSeekPosition, long absoluteEndSeekPosition)
      Description copied from interface: AdSelectionStrategy
      Selects which ad pods must be played from those found between start seek position and end seek position.
      Specified by:
      selectAdPods in interface AdSelectionStrategy
      timeline - the timeline
      absoluteStartSeekPosition - the absolute start seek position
      absoluteEndSeekPosition - the absolute end seek position
      the queue