Greetings all! So I've created a custom video interface (based on the one Lee Brimelow created in his Lynda.com tutorials ) that hinges on the NetStream.onStatus events. It uses the Play.Start and Play.Stop to create an onEnterFrame that updates the progress bar/seek functions/timecode/etc.
My problem is that when I connect it to a FVSS/Media Server, the 'NetStream.Play.Stop' and 'NetStream.Buffer.Flush' events are called about 75-80% of the way through the video - yet the video continues to play perfectly until the end of it. This causes some crazyness with my control interface in relation to controling the video. So far i've tried it on a 3rd party streaming service, and the dev version of Media Server 2. Same error both places. I've tried many different video files, and many different encoders (Flash Video encoder, visualHub, riva, AE, etc). Here's an example of the error I'm getting (pay attention to when 'Play.Stop' and 'Buffer.Flush' are called): http://temp.fhdbeta.com/Adobe/basicVideo2.html This is all the code I'm using in that file: /////////////////////////////////// var serverName:String = "my server"; var appName:String = "my path"; var client_nc:NetConnection = new NetConnection(); client_nc.connect("rtmp://" + serverName + "/" + appName); var ns:NetStream = new NetStream(client_nc); ns.onStatus = function(info:Object) { trace(info.code); display_txt.text += info.code + "\n"; } testVideo.attachVideo(ns); ns.setBufferTime(.5); ns.play("whatever"); //////////////////////////// If anyone can tell me why those two events are being fired 75-80% of the video when it has clearly not Stopped Playing or give me any workarounds for dealing with this, I'll be eternally grateful. Any information on this would be great - I've scoured all the searches/forums for any info on this, even Adobe Tech Support was stumped. Many many thanks for your time! -will- _______________________________________________ Flashcoders@chattyfig.figleaf.com 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