|
-
My homepage loads a movie every 5 secs which contains a dynamically loaded jpeg (which is ftp'ed from my webcam to server every 5 secs).
It seems that anyone accessing my site on a windows XP system doesn't get a new image every 5 or 10 secs, but every 10 mins!!!
I've had a couple of people on W2000 and ME try it, and it's OK.
Has anyone come across probs so far with MX and XP???
Could you try to access my webcam and let me know if it updates? There is a time at the bottom of each jpeg capture.
http://www.martynrowe.com - and click on webcam when in main site.
I have loaded the webcam swf using a random number added on the end of the file name...so as far as I can tell it is not a caching issue (?)
Thanks!
-
Right, I have subsequently found out that it's the temporary internet files options settings in the browser!
If it is set to the default "automatically" then it doesn't work. The setting needs to be "every visit to the page". Now, how the hell do I enforce this from flash mx?????
aarrgghh!!!
-
One way of avoiding the images being cached is to append a number to the end of each image.
For example:
At the beginning of the movie:
var counter = 0;
Every time the image is loaded:
counter++;
WebcamMovieClip.loadMovie("http://servername/webcam.jpg?" + counter);
This will ensure that the URL is different each time. The web server will ignore the question mark and everything after it but the browser will assume it is a different image and will not cache it.
-
Griffhiggins 2.2
-
srollason - thanks, but I have already done this. I create a random number before calling any movie/jpeg...which still doesn't seem to work on some people's XP machines....if they don't change the default temporary internet file setting.
Any other ideas? can actionscript force the clearing of the cache????
clifgriffin - are you on XP then?
thanks!
-
Originally posted by martyn_rowe
Could you try to access my webcam and let me know if it updates? There is a time at the bottom of each jpeg capture.
Unfortunately it doesn't work for me (Win 2000, IE 5.5). I've even tried the force reload trick (it's either Ctrl-Reload or Alt-Reload, I keep forgetting).
I often have similar issues when working with Java Server Pages and Java applets. Browser caches can be a real pain in the behind...
Juggle5
-
Another possibility is that you may need to put an unloadMovie command before the loadMovie command. I recall once having a problem with a movie loaded via the loadMovie command fetching an old version and I fixed it by unloading the movie before loading it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|