Add listeners for timed-metadata notifications

To receive notifications about tags in the manifest, listen for AdobePSDK.TimedMetadataEvent.

When a new TimedMetadata object is created, the MediaPlayer dispatches AdobePSDK.TimedMetadataEvent.

  1. Implement the appropriate listeners.

    function onTimedMetadataEvent(event) { 
        var timedMetadata = event.timedMetadata; 
        // process the timed metadata collection 
        } 
    
    
  2. Register the event listeners.

    player.addEventListener(AdobePSDK.PSDKEventType.TIMED_METADATA_AVAILABLE, onTimedMetadataEvent);
    

ID3 metadata is dispatched through the same Events.TimedMetadataEvent. You can use the timedMetadata.type property to distinguish between TAG and ID3.

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