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