webcamjs
webcamjs copied to clipboard
fix for new version of chrome and mozilla
error in chrome webcam.js:133 Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. at webcam.js:133 https://monosnap.com/file/wLH34Uzr5Rz3sIxuUUnVy6x6zUkukG
need to update from video.src = window.URL.createObjectURL( stream ) || stream; to video.srcObject = stream;
Thanks, works for me.