The way in which ad break behavior is controlled has changed. In
addition, some API elements have changed or been renamed as a result.
Ad behavior changes include:
- The
AdBreakPolicySelector interface is replaced by
AdPolicySelector, which has the following methods:
- public
AdBreakPolicy
selectPolicyForAdBreak(AdPolicyInfo
adPolicyInfo);
- public
List<AdBreakPlacement>
selectAdBreaksToPlay(AdPolicyInfo
adPolicyInfo);
- public
AdPolicy
selectPolicyForSeekIntoAd(AdPolicyInfo
adPolicyInfo);
- public
AdBreakAsWatched
selectWatchedPolicyForAdBreak(AdPolicyInfo
adPolicyInfo);
- The
DefaultAdBreakPolicySelector class is replaced by
DefaultAdPolicySelector, which implements
AdPolicySelector.
To reproduce the same ad behavior as in the PSDK 1.2: