Code is not executed in Processing, but in p5.js Web Editor

W/ both properties deviceId & groupId having an empty string there’s no way to pick a specific camera using that approach.

My code will end up getting the default camera instead.

Besides empty strings you get a “Failed to load resource” error, perhaps outta enumerateDevices().

Seems like your Safari browser is refusing to reveal your available devices’ detailed info.