If you got IP camera, you can stream the video in mjpeg directly to an image simply by giving the right source... for example:
<img src="http://192.168.1.106:8080/video" />
That is great. But when camera gets disconnected for some reason and reconnected after short time, streaming does not resume. Does anybody has any idea how to automatically resume the streaming in such case? Maybe some javascript?