Use the default playback behavior

You can choose to use default ad behaviors.

To use default behaviors:

  • If you implement your own ContentFactory class, return a new instance of DefaultAdPolicySelector in your implementation of doRetrieveAdPolicySelector.

    public class CustomContentFactory extends ContentFactory { 
    
        //... 
        // your custom code for advertising classes 
        //... 
             
        /** 
         * @inheritDoc 
         */ 
        override protected function  
          doRetrieveAdPolicySelector(item:MediaPlayerItem):AdPolicySelector { 
            return new DefaultAdPolicySelector(item); 
        } 
    }
    
  • If you do not have a custom implementation for the ContentFactory class, TVSDK uses DefaultAdPolicySelector.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now