Thank you guys (and sorry for the delay in responding).
So what I’m actually trying to do is to create a simple way to allow users to switch video or audio devices (since I’m using the Twilio API to create an audio chat room). I am using the Toolbox plugin’s Javascript to bubble element. At first all I’m trying to do is to get a list of devices, which I do with the code pasted below. Unfortunately no matter what I do, I always get blank results on the JStoBubble element (console does show the JS script is fetching the devices correctly).
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…