Packagecom.adobe.mediacore
Classpublic class DefaultAdPolicySelector
InheritanceDefaultAdPolicySelector Inheritance Object
Implements AdPolicySelector

Default implementation for Ad policy selector.



Public Methods
 MethodDefined By
  
Default constructor.
DefaultAdPolicySelector
  
Selects the ad break to be played.
DefaultAdPolicySelector
  
Selects the ad break policy for next ad break.
DefaultAdPolicySelector
  
Selects the ad policy.
DefaultAdPolicySelector
  
Selects the watched ad break policy.
DefaultAdPolicySelector
Constructor Detail
DefaultAdPolicySelector()Constructor
public function DefaultAdPolicySelector(item:MediaPlayerItem)

Default constructor.

Parameters
item:MediaPlayerItem — Media player item associated with this policy selector.
Method Detail
selectAdBreaksToPlay()method
public function selectAdBreaksToPlay(adPolicyInfo:AdPolicyInfo):Vector.<AdBreakTimelineItem>

Selects the ad break to be played.

Parameters

adPolicyInfo:AdPolicyInfo — Context for selecting the right policy.

Returns
Vector.<AdBreakTimelineItem> — a list of AdBreakTimelineItems to be played.
selectPolicyForAdBreak()method 
public function selectPolicyForAdBreak(adPolicyInfo:AdPolicyInfo):String

Selects the ad break policy for next ad break.

Parameters

adPolicyInfo:AdPolicyInfo — Context for selecting the right policy.

Returns
String — a valid AdBreakPolicy value.
selectPolicyForSeekIntoAd()method 
public function selectPolicyForSeekIntoAd(adPolicyInfo:AdPolicyInfo):String

Selects the ad policy.

Parameters

adPolicyInfo:AdPolicyInfo — Context for selecting the right policy.

Returns
String — a valid AdPolicy be value.
selectWatchedPolicyForAdBreak()method 
public function selectWatchedPolicyForAdBreak(adPolicyInfo:AdPolicyInfo):String

Selects the watched ad break policy.

Parameters

adPolicyInfo:AdPolicyInfo — Context for selecting the right policy.

Returns
String — a valid AdBreakWatchedPolicy value.