To receive notifications about tags in the manifest, listen for AdobePSDK.TimedMetadataEvent.
When a new TimedMetadata
object is created, the MediaPlayer dispatches AdobePSDK.TimedMetadataEvent
.
Implement the appropriate listeners.
function onTimedMetadataEvent(event) {
var timedMetadata = event.timedMetadata;
// process the timed metadata collection
}
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.