Package 

Interface AdSelectionStrategy


  • 
    public interface AdSelectionStrategy
    
                        

    Defines the contract for Ad Pods selection to be played when seeking between the start seek position and the end seek position.

    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.

    • Method Summary

      Modifier and Type Method Description
      abstract Queue<AdPod> selectAdPods(@NonNull() Timeline timeline, long absoluteStartSeekPosition, long absoluteEndSeekPosition) Selects which ad pods must be played from those found between start seek position andend seek position.
      • Methods inherited from class java.lang.Object

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

      • selectAdPods

        @NonNull() abstract Queue<AdPod> selectAdPods(@NonNull() Timeline timeline, long absoluteStartSeekPosition, long absoluteEndSeekPosition)

        Selects which ad pods must be played from those found between start seek position andend seek position.

        Parameters:
        timeline - the timeline
        absoluteStartSeekPosition - the absolute start seek position
        absoluteEndSeekPosition - the absolute end seek position