[Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Matthias Dittgen
Hello, I want to use video for character animations and so I want to preload several videos without to play them while preloading. How can I do this in AS3? I found only the play(something.flv) method. Are there any other possibilities? Also, I am currently waiting for my metadata handler to be

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Glen Pike
Hi, Steven Sacks posted this the other day. Glen Preloading FLVs is easy peasy. var progressTimer:Timer = new Timer(10); progressTimer.addEventListener(TimerEvent.TIMER, updateProgress); var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Steven Sacks
Glen, Unfortunately, I discovered a bug with the code I posted. The NetStream.Buffer.Flush does not fire if the NetStream is paused. You have to check to see if the ns.bytesLoaded == ns.bytesTotal in the onProgress. Matthias, I have never had any unwanted sound behavior when I use:

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Matthias Dittgen
Hello Steven, yes, I noticed that. I am waiting for ns.bytesLoaded == ns.bytesTotal, and I wait even until metadata are received, as mentioned earlier. I have shut off the unwanted sound behavior now, but don't know, how I did it. pause(false) ist AS2, Steven? AS3/FlexBuilder doesn't allow me

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Matthias Dittgen
Steven, I can't figure out a way to use ByteArray. I am able to load the flv as ByteArray, but I can't see a way to load this into a Netstream object. Any thought on that? private function load(url:String):void { var loader:URLLoader = new URLLoader();

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Glen Pike
Hi, Have a look at these 2 possible things to combine / work-around getting the meta-data streaming via PHP. It is a different thing altogether, but you may be able to parse the FLV's and store the data in XML or something?

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Jason Van Cleave
you could use flvtool2 to get the metadata server-side and store it in a database http://www.inlet-media.de/ flvtool2 -P Prints out meta data to stdout On Jan 21, 2008 11:31 AM, Glen Pike [EMAIL PROTECTED] wrote: Hi, Have a look at these 2 possible things to combine / work-around

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Matthias Dittgen
Hi Jason, that's true. Of course I could read out all metadata and store it into an array or xml. It's the usual decision of flashdevelopers to have a every-situation-solution vs. a best-for-this-project-solution, right? ;) Thanks, Matthias On Jan 21, 2008 6:07 PM, Jason Van Cleave [EMAIL

Re: [Flashcoders] load flv and its metadata without start to play

2008-01-21 Thread Matthias Dittgen
Hi Glen, i am somewhat satisfied with my current solution, now, but this is a really interesting ressource you mentioned! Thanks for sharing! Matthias On Jan 21, 2008 5:31 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, Have a look at these 2 possible things to combine / work-around getting