Code to read an Mjpeg stream using the Readable stream api.
This code allows you to get an mjpeg stream using the fetch api and read from a ReadableStream in chunks and extract the jpeg frames and render it on an image or canvas object.
Code is in index.html