Class NoAdSeekStrategy

  • All Implemented Interfaces:
    AdSelectionStrategy

    public class NoAdSeekStrategy
    extends java.lang.Object
    implements AdSelectionStrategy
    Ignore the ads found between the start and end position.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoAdSeekStrategy

        public NoAdSeekStrategy()
    • Method Detail

      • selectAdPods

        @NonNull
        public java.util.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
        Parameters:
        timeline - the timeline
        absoluteStartSeekPosition - the absolute start seek position
        absoluteEndSeekPosition - the absolute end seek position
        Returns:
        the queue