Link to home
Start Free TrialLog in
Avatar of janey1lee
janey1leeFlag for United States of America

asked on

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
Avatar of bobert5696
bobert5696

Is there a reason you cannot just directly store the videos on the kiosk?
Avatar of janey1lee

ASKER

Yeah, there are 5 kiosks all over the place, they need to use some sort of centralized location
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.
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?
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 :)
Great idea! if you could get me started on the bat file, I would be really grateful.
ASKER CERTIFIED SOLUTION
Avatar of bobert5696
bobert5696

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you!