I am having problems getting the ns to detect when the stream is buffering so I can display a buffering message however in my NetStatusEvent the NetStream.Buffer.Empty never fires
I have a switch statement which traces out the event.info and the trace displays FULL but not empty what am I doing wrong?
here is my code
function netStatusHandler(event:NetStatusEvent):void {
// handles net status events
switch (event.info.code) {
// trace a messeage when the stream is not found
case "NetStream.Play.StreamNotFound":
trace("Stream not found: " + strSource);
break;
case "NetStream.Buffer.Empty":
trace("Buffering");
mcVideoControls.videoBufferText.htmlText = "Buffering Video";
break;
case "NetStream.Buffer.Full":
trace("playing");
mcVideoControls.videoBufferText.htmlText = "";
break;
// when the video reaches its end, we check if there are
// more videos left or stop the player
case "NetStream.Play.Stop":
if(intActiveVid + 1 < xmlPlaylist..vid.length())
playNext();
else
stopVideoPlayer();
break;
}
}