Open vegalou opened 2 years ago
For the error net::ERR_FILE_NOT_FOUND
in Chrome,
I think it's because revokeObjectURL execute earlier than rendering image.
let frame = URL.createObjectURL(new Blob([imageBuffer]))
image.src = frame;
URL.revokeObjectURL(frame)
Delay revoke seems resolve the issue.
let frame = URL.createObjectURL(new Blob([imageBuffer]))
image.src = frame;
window.setTimeout(function () {
URL.revokeObjectURL(frame)
}, 1000);
Thanks for your help on read MJPEG streaming in JS!!
Ran
index.html
, add basic auth and found a SMALL bug. (Line:72)MIME description should be :
If there is basic authentication need, mod FETCH to:
works in Firefox, but error shows in Chrome
Thanks!