First of all, thanks for this awesome demo. It's working perfectly 99% of the time.
A minor issue, though definitely a snag for my usage, is when the scene changes from total darkness (ie. taking lens cap off) the stream will disconnect with the error:
Error received while reading the MJPEG.
Any ideas on why this could be happening? Are you able to replicate? Thanks!