hi there,
I’ve built a custom flash, as3 streaming video player, all works pretty good (even dsi switching). And I’m trying to increase the size of the buffer, so if the user pauses the movie the buffer continues to fill until it buffers the entire movie. is this possible?
I tried this…
private function netStatusHandler(event:NetStatusEvent):void {
switch (event.info.code) {
case "NetConnection.Connect.Success" :
doVideo(_nc);
break;
case "NetConnection.Connect.Failed" :
break;
case "NetConnection.Connect.Rejected" :
break;
case "NetStream.Play.Stop" :
break;
case "NetStream.Play.StreamNotFound" :
break;
case "NetStream.Publish.BadName" :
trace("The stream name is already used");
break;
case "NetStream.Buffer.Full" :
_ns.bufferTime=_ns.bufferTime+5;
TweenLite.to(_buffer,1,{alpha:0});
break;
case "NetStream.Buffer.Empty" :
_ns.bufferTime=2;
TweenLite.to(_buffer,1,{alpha:1});
break;
}
}
but “NetStream.Buffer.Full” only fires once, and once “_ns.bufferLength” reaches 60 seconds, it stops?
anyone know anything about this?