Sometimes mediaCapturePermission API doesn't work

Sometimes, the recording request modal may not appear. I suspect sometimes that the mediaCapturePermission API may not work in my meeting bot implementation. The bot implementation triggers the onPreviewPannel event panel, as shown in the snippet below, but is there a more appropriate way to implement this?

Browser Console Error

Which Web Meeting SDK version?

Meeting SDK Code Snippets

  success: () => {

function afterJoin() {
function handlePreviewPannel({preJoin: boolean}) {
  if (boolean === false) {
    console.log('mediaCapturePermission request')
       operate: 'request'
       success: () => {
              console.log('mediaCapturePermission success')
       error: ({errorCode, errorMessage}) => {
              console.log('mediaCapturePermission error', errorCode, errorMessage);

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. turn on “Local Recording” in setting page
  2. the host(human) starts a meeting
  3. the bot (above snippets) joins the meeting
  4. sometimes, the recording request modal doesn’t appear, and just ‘mediaCapturePermission request’ appear in console log but neither ‘mediaCapturePermission success’ nor ‘mediaCapturePermission error’ don’t appear.

If applicable, add screenshots to help explain your problem.

Troubleshooting Routes
The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on Zoom · GitHub).

Device (please complete the following information):

  • Device: GCE instance
  • OS: Ubuntu 22.04
  • Browser: chrome
  • Browser Version: google-chrome-stable_108.0.5359.124-1

Additional context

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.