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
Post a Comment