Create the Video Analytics Manager

A new manager class ( VAManager) has been added to the Android Reference Implementation. VAManager simply creates and destroys an instance of the VideoHeartbeat class. The reference implementation creates a VAManager instance when a new MediaPlayer is created, and destroys that instance when the MediaPlayer is destroyed. This is implemented in PlayerFragment.java.

To create a new Video Analytics Manager

VAManager vaManager = ManagerFactory.getVAManager(true, config, mediaPlayer);  
vaManager.createVAProvider(getActivity().getApplicationContext()); 

The config variable is a concrete implementation of IVAConfig and contains the runtime VideoHeartbeat configurations.

NOTE

If the Android application is not configured with an Adobe Analytics account, then video tracking data will not be generated, even if an instance of VAManager is created and enabled.

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