Implement custom time updates

In some analytics implementations, the client application might want to provide a different playhead position than the position reported by the Browser TVSDK localTime value.

For example, during a linear stream playback, each program’s playhead can be provided relative to its start time.

TIP

Override this method only if you want to provide a playhead position other than the default position.

To override the default playhead position:

vaMetadata.currentTimeUpdateBlock = function() { 
       return playerPositionInSeconds; 
}; 

IMPORTANT

The values in this code snippet are only samples. You need to use different values for your custom playhead position.

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