decker-edu / decker

A markdown based tool for slide deck creation.
GNU General Public License v3.0
55 stars 13 forks source link

explain.js: captureCamera() fails if there are no cameras #5

Closed salbeira closed 1 year ago

salbeira commented 1 year ago

If you use a device like a MacMini that simply has no camera device the function fails at line 396 and throws an error, aborting the whole recording setup.

Expected behaviour if there are simply no devices to capture would be to return a null or an empty stream so further setup still happens.