azure-sdk-for-ios
azure-sdk-for-ios copied to clipboard
[BUG] Microphone Indicator is visible even the call is muted
Describe the bug Orange microphone indicator is always visible after unmuting and muting the call again.
To Reproduce
- Accept an incoming call with
outgoingAudioOptions
muted. Microphone indicator is not visible. - Unmute call. Microphone indicator is visible.
- Mute it again. Microphone indicator is visible.
Code Snippet
let options = AcceptCallOptions()
let audioOptions = OutgoingAudioOptions()
audioOptions.muted = true
options.outgoingAudioOptions = audioOptions
incomingCall?.accept(options: options) { }
call?.unmuteOutgoingAudio(completionHandler: { })
call?.muteOutgoingAudio(completionHandler: { })
Expected behavior Orange microphone indicator should be gone when call is muted.
Setup (please complete the following information):
- OS: iOS 17.4.1
- IDE : Xcode
- 2.9.0
Additional context It is tested with several devices, iOS versions.
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- [x ] Bug Description Added
- [x ] Repro Steps Added
- [x ] Setup information Added
@raosanat can you please take a look?
Hi @eskizyen, Are you using CallKit? Either via SDK or implementing by yourself?
Orange microphone indicator should be gone when call is muted.
That behavior is only present if we signal CallKit that call is muted, so in that case if you use call kit with SDK you would observe correct behavior.
Thanks @lucianopa-msft, unfortunately using CallKit is not an option for me.
I think the real problem here is SDK still processes microphone input even the call is muted (speakingWhileMicrophoneIsMuted). Is there any way to disable this?
I am able to override this behaviour using AVAudioApplication.shared.setInputMuted(Bool), yet this class is introduced in iOS 17.
I think the real problem here is SDK still processes microphone input even the call is muted (speakingWhileMicrophoneIsMuted). Is there any way to disable this?
Not through our APIs at the moment there isn't, and we cannot really change this behavior on mute action because we need mic input for speakingWhileMicrophoneIsMuted UFD.
I am able to override this behaviour using AVAudioApplication.shared.setInputMuted(Bool), yet this class is introduced in iOS 17.
Likely there is a way to do that in older OSes? Using a different API?
Likely there is a way to do that in older OSes? Using a different API?
I couldn't find anything so far. Thanks for your time.
As there is no action we can provide in this case, let's close this for now @eskizyen if you still think we can provide any assistance in this scenario feel free to reopen or open another issue if you need more support regarding other issues :)