NetStream.Play.Stop & NetStream.Buffer.Flush
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":
break;
case "NetStream.Buffer.Flush":
break;
}
}
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":
break;
case "NetStream.Buffer.Flush":
break;
}
}
Nhận xét
Đăng nhận xét