Description
I am experiencing an issue with the Zoom Video Web SDK sample app code on iOS Safari. When attempting to start audio using the startAudio
function with no any parameters, the operation gets stuck and eventually throws an error with the message: {"type": "OPERATION_TIMEOUT"}
. This issue occurs intermittently and affects the ability to start audio reliably.
Browser Console Error
{“type”: “OPERATION_TIMEOUT”}
Which Web Video SDK version?
1.11.6
Video SDK Code Snippets
const onMicrophoneClick = useCallback(async () => {
if (isStartedAudio) {
if (isMuted) {
await mediaStream?.unmuteAudio();
} else {
await mediaStream?.muteAudio();
}
} else {
try {
await mediaStream?.startAudio();
} catch (e: any) {
if (e.type === 'INSUFFICIENT_PRIVILEGES' && e.reason === 'USER_FORBIDDEN_MICROPHONE') {
setIsMicrophoneForbidden(true);
}
message.error(e?.reason || JSON.stringify(e));
}
}
}, [mediaStream, isStartedAudio, isMuted]);
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Run GitHub - zoom/videosdk-web-sample: Zoom Video SDK web sample
- Join from iOS Safari
- Press start mic button
- Nothing will happen long time then error throws {“type”: “OPERATION_TIMEOUT”}
Device (please complete the following information):
- Device: iPhone SE
- OS: iOS 16.5
- Browser: Safari
- Browser Version 16.5
Additional context
Issue may reproduce after internet disconnet and then reconnect