Show Menu
TOPICS×

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.
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.