webrtc - How to get all audio devices for Android APIs < 23 -


how can device info not using method of api 23 ?

audiodeviceinfo[] devices = audiomanager.getdevices(audiomanager.get_devices_all); //or get_devices_outputs 

is there way?

in case target api 19 - kitkat.

thank you.

to devices, can use navigator.mediadevices.enumeratedevices() method provided in webrtc.

here simple javascript function audio input devices

`navigator.mediadevices.enumeratedevices()   .then(function(devices) {     devices.foreach(function(device) {       console.log(device.kind + ": " + device.label + " id = " + device.deviceid);   if(device.kind=="audioinput"){     //audio device , use device.deviceid } }); })` 

the method tested chrome


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -