Closed alzubitariq closed 3 years ago
to handle that backwards compatible , I think you have to check WebRTCme project => Android =>MediaStream class and replace this
var id = audioManager.Microphones[0].Id;
with this int id = 0; if (Build.VERSION.SdkInt >= BuildVersionCodes.P) { id = audioManager.Microphones[0].Id; } else { AudioDeviceInfo[] deviceInfo = audioManager.GetDevices(GetDevicesTargets.Inputs); id = deviceInfo[0].Id; }
Thanks for the tip, I will add it to the code.
Java.Lang.NoSuchMethodError: 'no non-static method "Landroid/media/AudioManager;.getMicrophones()Ljava/util/List;"'