In order to force a refresh of the image every (say) 1 second you need to:
- Use a javascript
setInterval
- Cachebust the image source if the filename isn't changing
for instance the following code
<img id="vidimg" src="Assets/img.jpg">
<script>
setInterval(function(){
document.getElementById("vidimg").src="Assets/img.jpg" +
"?cachebuster=" + Math.round(new Date().getTime() / 1000).toString() },
1000);
</script>
the setInterval(... ,1000);
causes the function within to repeat every 1000 milliseconds (once a second) - you may want to adjust this depending on the download speed/refresh rate of the image source you are using. The function can be inline, as I have done here, or if there is more complex logic involved you can make it a named function and reference that instead.
the document.getElementById("vidimg").src="Assets/img.jpg"
simply reloads the image source - on its own this may cause the browser to attempt to be smart if the image appears to be the same as what is already cached, so you need to add a random parameter to the filename in order to force it to re-fetch from the server, hence the + "?cachebuster=" + Math.round(new Date().getTime() / 1000).toString()
which just adds a parameter based on the current time.
If your source doesn't have a filename (as in the example in your question) then adding the cachebuster should still work.
As I don't have access to a source like the one you describe I've not been able to test this, but in theory it should work. Alternatively can you not use a <video src ="http://ip_address/stream">
to access it?