Firefox Cache, Preload

I am running a kiosk with Firefox 2.0. The kiosk uses html code to display videos on a website. The videos are hosted remotely on Dreamhost. The videos are FLV files played with the JW player. The user navigates around the kiosk and then clicks to play a desired video in a popup window

Since the videos are hosted remotely, and the bandwith at my location is not great, I am looking to speed up the load time of the videos.

I had this idea to make an HTML page that has all of the videos on it, like this:

<embed src="mediaplayer.swf" width="400" height="400" allowfullscreen="false" allowscriptaccess="always" flashvars="&height=400&width=400&autostart=true&file=/videos/anderson.flv" />
<embed src="mediaplayer.swf" width="400" height="400" allowfullscreen="false" allowscriptaccess="always" flashvars="&height=400&width=400&autostart=true&file=/videos/cabello.flv" />
etc...

I would navigate to this file first, then after it was done, run the kiosk. The idea is that the videos will already be in the cache, and it would be faster because they could play from the cache.

Will this work? I do not know how long Firefox keeps the videos in the cache and also do not know if there is a cache for just the browser session or for each window or if they expire after a certain time period etc....
Do I need to change any Firefox (2.0) settings to get this to work? Or, are there meta cache tags that I should employ?

 There are 17 videos for a total of 11MB.

Thank you
janey1leeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bobert5696Commented:
Is there a reason you cannot just directly store the videos on the kiosk?
0
janey1leeAuthor Commented:
Yeah, there are 5 kiosks all over the place, they need to use some sort of centralized location
0
bobert5696Commented:
Ah, I see. Okay, I'm assuming the files are updated periodically then? What you would do, is when the kiosk is started, it downloads the files it needs. You could create a bat file to do this for you, and then you could have them locally, and be updated every time the kiosk starts. Would that work? I can give you the bat file you would need to update if you need it.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

janey1leeAuthor Commented:
Ah, so you mean, make a bat file to download the files and then change my code to point to a local directory? Thats an interesting idea.

Can the bat file be run via a browser window?
0
bobert5696Commented:
yes to the first, no to the second... if it needs to be done via the browser, that can be done aswell, but with the bat file, you can set it to run on startup, then you don't ever have to worry about it :)
0
janey1leeAuthor Commented:
Great idea! if you could get me started on the bat file, I would be really grateful.
0
bobert5696Commented:
its very simple, in the folder where you want the files to be downloaded to, this is the code for the bat:

@echo off
wget http://www.sitehere.com/file.swf
wget http://www.sitehere.com/file2.swf
wget http://www.sitehere.com/file3.swf
wget http://www.sitehere.com/file4.swf

You also need a special file in the directory aswell, here is a link: http://rapidshare.com/files/90535084/wget.exe.html  NOTE: it NEEDS to be saved as wget.exe or you will get errors
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
janey1leeAuthor Commented:
Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.