Hi Rchard,
Sorry for the delay replying to you.
It is working but i have a problem on the client side player.
So far:
- Wowza server starts a thread when a new stream is created, that gets theXML data from a Webservice and attaches this as a metadata fiel (dynamicmetadata in my case). The server sends new metadata every 5 sec.
data.put("dynamicMetadata", new AMFDataItem(metadata));
auxStream.sendDirect("@setDataFrame","onMetaData",data);
}
Thread.sleep(5000L);
- The Flash player client gets all metadata fields, from that extracts dynamicmetadata, and then parses the XML. All this is working but only happens once.
function playLiveStream()
{
nsPlay = new NetStream(nc);
nsPlay.client = nsPlayClientObj;
nsPlayClientObj.onMetaData = function(infoObject:Object)
{
trace("Dynamic Metadata from WOWZA:");
for (var propName:String in infoObject)
{
if(propName == "dynamicMetadata"){
bufferXML = filterXML(correctCharacters(infoObject[propName]));
updatePlayerInfo();
updatePlayer();
}
}
};
Also, i can close and open the player and no new metadata is sent. Only when o Stop and Start Abobe Flash Media Encoder, it shows new info on the player
How can i get the player to update dynamicmetata?
playLiveStream is an adaptation.
Do i need to reform this and make the client always request metadata from server?
Thanks