Video players must provide computational data that the video heartbeat library cannot determine itself.
This method should return -1 when the main video has not yet started (in pre-roll scenarios), and when the main video playback has completed (in post roll scenarios).
This method should return -1 when no ad is currently active.
Important: When the video heartbeat code invokes the getCurrentAdPlayhead() method, what needs to be returned is the playhead value relative to the beginning of the currently active ad. It there is no currently playing ad content, the value of -1 should be returned instead. When the video heartbeat code invokes the getMainAssetPlayhead() method, what needs to be returned is the playhead value relative to the beginning of the main asset excluding the ad content.
The application developer must implement this interface based on the specific APIs exposed by their video player. The instance created by the application developer is then passed on to the Video Analytics real-time tracking package via the constructor method exposed by the ADBVideoHeartbeat class.