PDA

View Full Version : FLV preload and bytesTotal


tfletch
09-05-2007, 05:04 AM
I have the basic preloader on the first frame. I read the articles on complications with preloaders, so I'm well educated on the procedure. So i got all that setup. I'm having a bit of a problem though.

The question: I want my one-frame-preloader to preload an FLV and combine that with my bytesTotal so I only have one load bar loading up everything. Well, when you preload in an FLV, its sent to the cache but not apart of the SWF's filesize. How can I accomplish adding in the bytesTotal of the SWF and FLV's filesize being preloaded? Does this make any sense?

hmm whats the quality advantages of embedded vs. component? I don't care for streaming but I want good quality.

atomic
09-05-2007, 05:14 AM
Are you using a FLVPlayback or Media component?

tfletch
09-05-2007, 05:26 AM
Ah yeah, why would I use FLVPlayback if im not streaming...so yes, media component. So heres my plan, im going to combine the getBytesTotal value from the _root and the FLV. Sound right?

How do most other heavy video sites display their video? Im torn between embedding(from what I know is crap) into an external SWF or using the MediaDisplay component.

atomic
09-05-2007, 06:00 AM
Don't see why you wouldn't use a FLVPlayback component, unless you have to publish for 6 or 7, or that you're on MX2004...

That said yes, you'd first have to determine the total bytes of the .flv and the total bytes of your shell movie, in order to establish the 100% combined total bytes count mark, that would be used on your loadbar and/or percentage display...

You first have to start loading the .flv and interrupt the loading as soon as you know it's total bytes count... You must then find the total bytes count of your shell movie, which has in fact started loading when you started loading the .flv, thus part of it has already loaded, and add it to the .flv's total bytes count, in order to start displaying your loadbar & percentage, based on the combined total bytes count, and then start re-loading the .flv... If you're still following me on this, this is easier said than done...

Assuming your shell movie would remain the same and you already knew it's bytes count, it might be easier to just add that bytes count to the .flv's to start displaying your loadbar and/or percentage as soon as possible...

Maybe better to attach the .fla you've got, so that I may have a look at it...
I can add my own .flv for testing purposes...

panel
09-05-2007, 07:31 AM
Don't see why you wouldn't use a FLVPlayback component, unless you have to publish for 6 or 7, or that you're on MX2004...

Flash CS3 component (As3) don't stop do download flv even if you change source (so after few source changes few files are buffered at one time). I suppose as version of component may work the same, but I didn't test it so I am only guessing.

tfletch
09-11-2007, 11:41 PM
How would I load in an FLV without the FLVPlayBack on that frame? Because I have it attached once the site is preloaded in so I can remove it once its done. Can I just load in the FLV other than using attachVideo?