On iPads running iOS 15, while in a live video call, if you use smart cover, the remote participant may observe no audio. This is an iOS behavior where it interrupts audio capture from the microphone for VoIP calls when smart cover is used.
Steps to Reproduce
iPad running iOS 15 having smart cover
Connect to a Room and observe the bi-direction audio
Use smart cover and close the screen.
No audio is observed on the remote side.
Over writing the audio interruption behavior
Use overrideMutedMicrophoneInterruption AVAudioSession Category Option. Here is an example code snippet on how to set the category options using DefaultAudioDevice.
try if #available(iOS 14.5, *) {
let audioDevice = DefaultAudioDevice()
TwilioVideoSDK.audioDevice = audioDevice
audioDevice.block = {
do {
DefaultAudioDevice.DefaultAVAudioSessionConfigurationBlock()
let audioSession = AVAudioSession.sharedInstance()
audioSession.setCategory(AVAudioSession.Category.playAndRecord,
mode: AVAudioSession.Mode.videoChat,
options: [AVAudioSession.CategoryOptions.allowBluetooth,
AVAudioSession.CategoryOptions.overrideMutedMicrophoneInterruption] )
} catch let error as NSError {
print("Fail: \(error.localizedDescription)")
}
}
audioDevice.block();
}
Description
On iPads running iOS 15, while in a live video call, if you use smart cover, the remote participant may observe no audio. This is an iOS behavior where it interrupts audio capture from the microphone for VoIP calls when smart cover is used.
Steps to Reproduce
Over writing the audio interruption behavior
Use overrideMutedMicrophoneInterruption AVAudioSession Category Option. Here is an example code snippet on how to set the category options using DefaultAudioDevice.
iOS Version
iOS 15
iOS Device
iPad