Essentially, my code is,
<img src="/video_feed" />
and when you load the website, it takes 20 seconds before the video feed begins.
I'd like to display a loading gif while you wait.
But I'm not sure what event to listen for.
I tried $(window).ready()
but that happens immediately. Any idea if there's an event for when the video feed begins?
Or some JS trick? Ajax call that changes div contents on success, maybe, instead of image src?
The video tag isn't working.