Handeling FLV metadata
I am trying to get metadate from my NetStream object and do things depending on what is going on. here is what I have, but I get an error I don't know what it means.
var customClient:Object = new Object();
customClient.onMetaData = metaDataHandler;
function metaDataHandler(infoObject:Object):void {
switch (infoObject.info.code) {
case "NetStream.Play.Start":
trace("It is playing!!!");
break;
case "NetStream.Play.Stop":
trace("It stoped playing!!!");
break;
}
}
The error I get is:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback onMetaData. error=TypeError: Error #1010: A term is undefined and has no properties.
at AMG_ASP_ICS_072709_fla::MainTimeline/frame1()
What am I missing here?
Thank you for any help on this!!!