Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can movies be cached by one Preloader?

Status
Not open for further replies.

PCSAARON

Programmer
Jul 9, 2002
131
US
I have always gotten my preloaders to work. However, I am not sure what to do to get 10 different movies that all have preloaders to load so they can be cached.

I am developing a website that has about 10 different movies that takes about 30 seconds each to load via cable. (on separate html pages) I would like to have an option to load all moviess and let the person walk away for a few minutes and come back an experience all the pages and not have to wait every time they go to a new section. I have tried loading the movies externally, ex:

loadMovieNum(" 1);
loadMovieNum(" 1);

...and of course when going to the next page in the browser, it will still continue to load the movie it supposedly just finished loading.

If anyone has any ideas or solutions, please let me know... Thanks..

Aaron
 
One single preloader in a main movie can preload any number of external movies... Point is, that it's often suggested to preload individual external movies only on demand to precisely cut down on the preloading time. If you were to preload all of your external movies before anyone of them plays, then you might as well convert them all to movie clips, all part of one main movie, that would all preload with the main movie's preloader.
Thing is, unless your movies can only be played in one particular order, you usually can't tell (if the user has the choice...), what movie (or what section of your site) he'll want to see next. Thus if he wants to see movie 10, and you only have preloaded movies 1 through 6, he'll still have to wait for the other movies to preload before he sees them.
If your movies must be screened in a particular order, you could possibly preload only the first or a few ones, start your first movie playing, while the preloading of the others continue preloading in the background. Once cached, they would all be theoritically ready to instantly play when ever they'd be called to do so.

More info would help to guide you to a proper solution.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top