|
|
|
|
|
by donatj
3837 days ago
|
|
Motion JPEG is arguably better suited to the task as the browser knows not to cache the previous frames by rule. It's actually designed for this exact purpose. I made a little example project a few years back. The format is dead simple, keep the connection open, flush multiple JPEGS separated by a header. It's used pretty often by cheap security cameras and is supported by most browsers. It just seems to be not widely known about. https://github.com/donatj/mjpeg-php |
|
The demo is still live:
http://drewgottlieb.net/2012/07/29/real-time-user-count.html