Closed splicebison closed 6 years ago
To follow up on this, I'd recommend possibly something like this (untested):
try { video.srcObject = stream; } catch ( error ) { video.src = URL.createObjectURL( stream ); }
I have the same error. It won't work in Safari.
Webcam fails in Safari. This is due to line 319:
video.src = window.URL.createObjectURL( stream ) || stream;
This can be replaced with:
video.srcObject = stream;
Please note, this isn't tested across all browsers.