so, the thread says "enable" microphone and webcam. the post says "list" microphone and webcam. obviously a big difference.
assuming you merely want to
list the devices (which i don't actually believe is the case), here is what you do:
add a webview to your project
add webviewextras to the project
add chromeclient in webviewextras
in the attachment below there are 2 files:
1) devices.html (for listing the devices)
2) devices.png (an example of what i see when i run the script on one of my devices)
add devices.html to your project (dir.assets)
when you build and run the app, after you have added a webview and chromeclient, you read in devices.html
load the webview. it will show an alert similar to what you see in devices.png. in fact you see only data which
are available to you. there is no guarantee what is available. don't ask why you cannot see more. you see only
the data that's available. period.
note: i loaded the webview as follows
webview.loadhtml( file.readstring( file.dirassets, "devices.html"))
you are, of course, free to use whatever method you wish.