Description
In our iOS application that uses Zoom iOS Meeting SDK, we experience unexpected screen sharing interruptions.
The application uses a custom meeting UI and performs device screen broadcasting via MobileRTCScreenShareService.
Additionally, the app actively uses Speech Recognition (SFSpeechRecognizer).
When screen sharing is active, and the app periodically reconfigures the AVAudioSession for speech recognition, screen sharing may stop unexpectedly.
Which iOS Meeting SDK version?
v6.1.10.17500
To Reproduce(If applicable)
- Join a Zoom meeting using the custom UI.
- Start screen sharing (device screen) via
MobileRTCScreenShareService. - Start using
SFSpeechRecognizer. - Periodically change the
AVAudioSessionconfiguration using the following code:
let audioSession = AVAudioSession.sharedInstance()
do {
try audioSession.setCategory(.record, mode: .measurement)
try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
} catch {}
Screen sharing may stop unexpectedly with one of the following errors:
Live Broadcast to SAFE-T Screen Sharing
has stopped due to: Attempted to start an invalid broadcast session
or
Screen Broadcasting: Live Broadcast to SAFE-T Screen Sharing has stopped
due to: You have stopped screen sharing
Expected Result
Screen sharing should continue uninterrupted while using speech recognition and updating AVAudioSession, or the SDK should provide a documented restriction or recommended audio session configuration to avoid this issue.
Smartphone (please complete the following information):
Looks like it can be reproduced with all devices.
We used: iPhone 16, iPhone 12 with iOS versions 18.6.2, 18.5, 18.7 17.5