com.adobe.mediacore.timeline.advertising
Interface AdPolicySelector

All Known Implementing Classes:
DefaultAdPolicySelector

public interface AdPolicySelector


Method Summary
 List<AdBreakPlacement> selectAdBreaksToPlay(AdPolicyInfo adPolicyInfo)
          Select ad breaks after seek.
 AdBreakPolicy selectPolicyForAdBreak(AdPolicyInfo adPolicyInfo)
          Select policy for the provided ad break.
 AdPolicy selectPolicyForSeekIntoAd(AdPolicyInfo adPolicyInfo)
          Select policy for the provided ad break.
 AdBreakAsWatched selectWatchedPolicyForAdBreak(AdPolicyInfo adPolicyInfo)
          Select watched policy for the provided ad break.
 

Method Detail

selectPolicyForAdBreak

AdBreakPolicy selectPolicyForAdBreak(AdPolicyInfo adPolicyInfo)
Select policy for the provided ad break. The policy will instruct the media player on how to proceed after the ad break has been viewed by the user. Note: The P-SDK considers an ad break as being view when the content is changed during playback. This change can occur due to a seek (if the application allows the user to perform this operation) or due to ad break playback complete. The application can choose to either: - keep the ad break on the timeline - remove the ad break from the timeline - remove the ad break and restore main content (for live items)

Parameters:
adPolicyInfo -
Returns:
The desired ad policy

selectAdBreaksToPlay

List<AdBreakPlacement> selectAdBreaksToPlay(AdPolicyInfo adPolicyInfo)
Select ad breaks after seek. An ArrayList of AdBreakPlacement will be returned.

Parameters:
adPolicyInfo -
Returns:
The desired Ad Break policy

selectPolicyForSeekIntoAd

AdPolicy selectPolicyForSeekIntoAd(AdPolicyInfo adPolicyInfo)
Select policy for the provided ad break. The policy will instruct the media player on how to proceed after the ad was seeked into.

Parameters:
adPolicyInfo -
Returns:
Ad Breaks to play

selectWatchedPolicyForAdBreak

AdBreakAsWatched selectWatchedPolicyForAdBreak(AdPolicyInfo adPolicyInfo)
Select watched policy for the provided ad break. The policy will instruct when to mark ad break as watched.

Parameters:
adPolicyInfo -
Returns:
The desired ad policy