0
Discuss & Vote

Add onerror to image tags?

Jon Rohan 7 months ago in Media Tiles / Images updated by Alex (ActionTiles) (Co-Founder) 7 months ago 1

Every once and awhile a camera goes offline and displays a broken image..

Would it be possible to add something along the lines of:

<img src="imagenotfound.gif" alt="Image not found" onerror="this.src='imagefound.gif';" />
Discuss & Vote

Hi Jon,

Unfortunately the "onerror" event is not raised when camera initiated successfully and then the stream failed after a while. I'm currently working to add configuration to reload the app periodically. This will allow failed streams to re-establish connections.