Web SDK: TypeError: Cannot read properties of undefined (reading 'caps')

I’m using WebSDK version 3.8.5. I’m getting this error intermittently when calling ZoomMtg.mediaCapturePermission

Error [TypeError]: Cannot read properties of undefined (reading 'caps')
    at rn (https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:1591322)
    at https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:470838
    at te (https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:446548)
    at I.r.mediaCapturePermission (https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:470164)

Another post indicates this has been a problem for over a year (I can’t link to it here, but can search for the caps error), but it’s not clear what the cause is, possibly caused by the host not being in the meeting?

Can you clarify what the root cause is and also can we get this fixed in the sdk to throw a proper error with relevant information? For example, other errors are thrown that look like this:

{
  method: 'mediaCapturePermission',
  status: false,
  errorCode: 1,
  errorMessage: 'not support grant local record permissin',
  result: null
}

I believe that this may be happening when the host isn’t present in the meeting, but I’m hoping someone from Zoom can clarify the following:

  1. Does the host need to be present for mediaCapturePermission to work, even if the account has the computer recording settings enabled to automatically approve permission requests?
  2. Can we get the SDK fixed to throw a proper error?

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