I am creating a pseudo video in a HTML document by updating the source of an <img>
element 30 times a second with a new "frame" I get from a URL on my LAN (an IP security camera).
In Firefox the image seems to be cached so every time I try to get a new "frame", it shows the first one it got after starting the script.
In WebKit browsers (Chrome & Safari) the image I'm downloading is NOT cached, so every few ms the "video" is updated and it looks like an actual video. This is what I want in Firefox.
I have no control over the source of the video. I cannot add a GET parameter to force a re-download because the image that is sent back to me is returned empty when I try it (the server must have specific settings to disable them for security or something).
Is there a workaround while keeping this method? Is there a better method (keep in mind I have NO control over the source - this is the only way to view the video!).
My script (be prepared - it's very rushed)