I know this is an old question but i can't really seem to get a good grasp of it.

I have a client that loads FLVs locally off the machine it runs on. When movies stop, events get broadcasted. however sometimes the stop event i set up fails:

onStatus = function(info){
       switch(info.code){
           case "NetStream.Play.Start":
               stopped = false;
           break;
           case "NetStream.Buffer.Empty":
               if(stopped){
                   broadcastMessage("onVideoComplete");
               }
           break;
           case "NetStream.Play.Stop":
               stopped = true;
           break;
       }
}

On tracing out info.code onStatus, i see that buffer.empty and buffer.full flicker on and off during playback, and that gets me worried. Sometimes Play.stop is called before the buffer has played out, but buffer.flush and buffer.empty right now seem so unreliable in terms of actually firing at the end of the FLV that i'm confused as to how to even approach this.

Anyone got a solid, sound solution?

Thanks,

- Andreas SJ

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to