Thank you guys (and sorry for the delay in responding).
Thanks! So the code results in an array of objects (mediaDevices). Ideally accessing those objects would be most helpfull since I’d have the deviceID needed to switch devices as well as the type and label of each to present to the user.
Since I couldn’t work that out, I was trying to convert it to a JSON or even just a simple arrays of strings (ie. trying to get deviceIds), but no go for me…