Turning features on or off using ManagerFactory

You can turn features on or off without going through the code by using the manager factory.

The enablement argument in the example below determines whether the feature is used or not. If it is false, the feature manager is created but provides just the default functionality to the player, as if the feature manager were not created. If it is true, the feature manager is created, the feature is enabled, and the media player accepts input from the configuration file.

For example, in the com.adobe.primetime.reference.ui.player.PlayerFragment.java file:

adsManager = ManagerFactory.getAdsManager( 
<b>true</b>, config, mediaPlayer);

API documentation: ManagerFactory

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