ZoomSDKAudioSetting microhpone not turning off when released

Description
ZoomSDKAudioSetting never turns off the microphone when released. This happens in the ZoomSample macos app.

[_audioSettings getAudioDeviceList:YES] activates the mic but there is no option to turn it off in the SDK. I’m assuming the ZoomSDK retains a reference to the ZoomSDKSettingService that looks to retain the ZoomSDKAudioSettings so this never gets cleaned up.

Which version?
4.6.21666.0427
XCode 10.3

To Reproduce(If applicable)

  1. Start the sample app on the sdk.
  2. use custom UI.
  3. Once logged in go to settings.
  4. Close the settings never deactivates the microphone. You can notice this when wearing headphones that turn on ambient sound while the microphone is active.

Hi @timazed,

Thanks for the post. Are you using the interfaces that check the recording mic? If you are using the following interfaces:

You must use these interfaces in the following order:

  1. startRecordingMic
  2. stopRecordingMic
  3. playRecordingMic
  4. stopPlayRecordingMic

Otherwise, it is likely to get the error you are getting right now.

Thanks!

Hi @carson.zoom

The error occurs even if you don’t call any of those methods. The mic activates the moment you call [_audioSettings getAudioDeviceList:YES]

Cheers,
Tima

Hi Tima,

Thanks for the reply. We have tried to reproduce this with our demo but no luck. Please refer to the following steps/orders when opening the setting UI:

  1. startRecordingMic
  2. stopRecordingMic
  3. playRecordingMic
  4. stopPlayRecordingMic

If you are following the order and the error still occurs, could you provide an SDK log(~/Library/Logs/AppName) for us to further investigate? Could you also provide a short video showing this issue?

Thanks!

Hi Carson,

I will see if i can capture something that shows you that the microphone isn’t being turned off.

Like i said previously this happens without even calling the start/stop/play/stopplay apis. It’s the moment the audiosettings fetches the microphone device.

I noticed it because i have headphones that turn on ambient sound when the mic is active. I tested the default settings and the system preference they all behave as expected. In call experience also behaves as expected. Its just the implementation of the preference in the demo. I tracked it down to that line of code.

But I will see if I can find something that will help your developers.

Cheers,
Tima

Hi Tima,

Thank you very much. Any additional information will be very helpful. Looking forward to hearing from you and we will continue investigating this.

Thanks!