developerforce / gif-booth

Add animated GIFs and Family Photo to your virtual events
Creative Commons Zero v1.0 Universal
3 stars 9 forks source link

Handle error when camera isn't available #17

Open julianduque opened 4 years ago

julianduque commented 4 years ago

Currently, when trying to create a new GIF without a camera the application crashes.

clif-os commented 4 years ago

Seems like we probably need to handle this in the "componentDidMount" of the Webcam component using this api: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices