processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.11k stars 3.22k forks source link

add friendly error to createCapture() #6961

Closed mdb0 closed 2 months ago

mdb0 commented 2 months ago

Resolves #6402

Changes: One small change to add friendly errors when using createCapture(). Handle errors when there is no webcam or the webcam access is denied.

PR Checklist

welcome[bot] commented 2 months ago

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already. And be sure to add yourself to the list of contributors on the readme page!