Packagecom.adobe.mediacore.timeline.advertising
Interfacepublic interface AdBreakPolicySelector
Implementors DefaultAdBreakPolicySelector



Public Methods
 MethodDefined By
  
Select policy for the provided ad break.
AdBreakPolicySelector
Method Detail
selectPolicyFor()method
public function selectPolicyFor(adBreak:AdBreak, adPlacement:Placement):AdBreakPolicy

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

adBreak:AdBreak
 
adPlacement:Placement

Returns
AdBreakPolicy — The desired ad policy