developerforce / gif-booth

Add animated GIFs and Family Photo to your virtual events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle error when camera isn't available

julianduque opened this issue · comments

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

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