fand / veda

⚡VJ / Live Coding on Atom⚡
http://veda.gl/
MIT License
506 stars 34 forks source link

Error when using webcam: failed to execute 'createObjectURL' on 'URL' #254

Open leon196 opened 2 years ago

leon196 commented 2 years ago

I got an error when using the webcam. It seems that createObjectURL() is deprecated: https://github.com/sourcey/libsourcey/issues/264

It worked when I changed the file atom\packages\veda\node_modules\vedajs\lib\camera-loader.js from this.video.src = window.URL.createObjectURL(stream); to this.video.srcObject = stream;

I don't really know how to fix this with a fork and a pull request, because it seems to be a nested package, so I'm opening an issue to acknowledge the problem.