HTTP Live Streaming Timed Metadata in Safari

I'm working with a Wowza Media Server that inserts ID3 Meta Data tags for timed events into my HLS stream. Specifically, I'm referencing a tutorial/forum post from Wowza that references a GetTimedMetaDataUpdate() JavaScript function. It looks to run in the browser's namespace and I can't find any documentation of this function related to Safari's JavaScript API nor QuickTime's JavaScript API. Can anyone point me towards some documentation that I may be msising?


Here's the JavaScript code I've referenced above. Specifically the updateMetadata function calls this.GetTimedMetadataUpdates(). Because the event is being fired from the embedded tag I'm presuming it is part of the QuickTime API. It appears undocumented, though.


<html>
<head>
<title>Wowza Media Server 3: iOS ID3 Tag Tester</title>
<script type="text/javascript">
function loadPage()
{
 var myMovie = document.getElementById("mymovie");
 if (myMovie)
 {
 myMovie.addEventListener( "qt_timedmetadataupdated", updateMetadata, false );
 alert("loadPage: "+myMovie);
 }
}

function updateMetadata()
{
 var metadata = this.GetTimedMetadataUpdates();
 if (metadata)
 {
 var eventStr = "";
 for(var objIndex in metadata)
 {
 eventStr += "timedEvent:\n";
 for(var key in metadata[objIndex])
 {
 eventStr += "  "+key+": "+metadata[objIndex][key]+"\n";
 }
 }
 alert(eventStr);
 }
}
</script>
</head>
<body onload="loadPage();">
<div>
<embed width="320" height="180" src="${com.wowza.wms.HTTPIOSDebugID3Tags.playlistURL}" type="application/x-mpegURL" postdomevents="true" id="mymovie" />
</div>
</body>
</html>


This is the Wowza tutorial I'm referencing:

http://www.wowza.com/forums/content.php?355

iPad 2, iOS 5.1.1

Posted on Aug 9, 2012 11:08 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

HTTP Live Streaming Timed Metadata in Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.