Video SDK Type and Version
“@zoom/videosdk”: “^2.2.12”, for Web.
WebRTC enabled (no SharedArrayBuffer).
Description
In the Zoom Video SDK documentation we can read that active-media-failed:
Occurs when there is a media internal error, such as an unexpected interruption in media capture or insufficient memory. When receiving this event, we recommend refreshing the page or restarting the browser to resolve the issue. Since the user must do this, we recommend that you provide a popup to guide the user, such as ‘We detected an issue with the media stream that we cannot resolve. Please refresh the page to try to fix it.’ With two buttons: ‘Refresh’ and ‘Cancel’.
Well, I’ve added a popup with those two buttons. The problem is that this error appears quite frequently, and I’m not entirely sure what I can do to reduce its occurrence.
What are the main causes of this error appearing besides lack of camera and microphone permissions, and how can they be prevented?
So far I’ve managed to reproduce this failure in these ways:
- lack of device permissions in the browser;
- switching the browser window or webview on an Android device to another active app