I have made a simple flv playback script, which keeps playing FLV
script as follow:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video.attachNetStream(ns);
ns.play("video1.flv");
ns.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
function statusHandler(e:NetStatusEvent):void {
trace(e.info.code);
switch(e.info.code) {
case "NetStream.Play.Stop":
ns.play("video1.flv");
break;
case "NetStream.Buffer.Flush":
ns.play("video2.flv");
break;
}
}
[COLOR=royalblue]I’m wondering … when the FLV finished playing…[/COLOR]
[COLOR=royalblue]sometimes the e.info.code returns “NetStream.Play.Stop”, and[/COLOR]
[COLOR=royalblue]sometimes returns “NetStream.Buffer.Flush”[/COLOR]
i have no idea what’s wrong with that???
what’s the difference between them … ???
Could any body help??
Thanks ~~