# Zoom Web SDK V3.1.6- MediaCapturePermission (when there is no host)

**URL:** <https://devforum.zoom.us/t/zoom-web-sdk-v3-1-6-mediacapturepermission-when-there-is-no-host/105449>\
**Category:** Web\
**Created:** [March 11, 2024, 9:32am UTC](https://devforum.zoom.us/t/zoom-web-sdk-v3-1-6-mediacapturepermission-when-there-is-no-host/105449 "2024-03-11T09:32:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiva.goodmeetings](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shiva.goodmeetings/32/49652_2.png) [@shiva.goodmeetings](https://devforum.zoom.us/u/shiva.goodmeetings)\
**Post date:** [March 11, 2024, 9:32am UTC](https://devforum.zoom.us/t/zoom-web-sdk-v3-1-6-mediacapturepermission-when-there-is-no-host/105449/1 "2024-03-11T09:32:22Z")

</div>

**Zoom Meeting SDK for Web V3.1.6**

I am invoking the “ **mediaCapturePermission** ” function within the Zoom Web SDK to request recording permission from the host. Although this function operates seamlessly when there is a host available in the meeting. However, in scenarios where no host is present, invoking this function results in an exception: **“TypeError: Cannot read properties of undefined (reading ‘caps’)”.**

So, my question is how am I suppose to handle this flow where I know the host is not going to join but I still need record that meeting using my bot.

How do we suppose to handle this in our flow. Your answer is crucial for us. Thanks is advance!

---

<div class="post-metadata">

**Author:** ![shiva.goodmeetings](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shiva.goodmeetings/32/49652_2.png) [@shiva.goodmeetings](https://devforum.zoom.us/u/shiva.goodmeetings)\
**Post date:** [March 11, 2024, 9:33am UTC](https://devforum.zoom.us/t/zoom-web-sdk-v3-1-6-mediacapturepermission-when-there-is-no-host/105449/2 "2024-03-11T09:33:42Z")

</div>

@chunsiong.zoom @amanda-recallai for visibility

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 11, 2024, 9:45am UTC](https://devforum.zoom.us/t/zoom-web-sdk-v3-1-6-mediacapturepermission-when-there-is-no-host/105449/3 "2024-03-11T09:45:50Z")

</div>

> [@shiva.goodmeetings](#):
>
> So, my question is how am I suppose to handle this flow where I know the host is not going to join but I still need record that meeting using my bot.

In this case, you do not record.  
As long as the host does not provide permission, the rule of thumb is not to record

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [March 25, 2024, 7:59pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-v3-1-6-mediacapturepermission-when-there-is-no-host/105449/4 "2024-03-25T19:59:53Z")

</div>

Hey @shiva.goodmeetings,

As Chun Siong mentioned, if the host isn’t in the call, this method of achieving permissions isn’t viable since you can’t prompt the host for recording permissions.

If your use case commonly involves a host not being present during the meeting, however, the workaround here is to use OAuth to get local recording permissions. Here’s some Zoom documentation that explains how this works: [Use raw data | Meeting SDK | Windows](https://developers.zoom.us/docs/meeting-sdk/windows/add-features/raw-data/#receive-local-recording-permission-through-an-oauth-app)

Another alternative is to use [Recall.ai](https://www.recall.ai/)for your meeting bots instead. It’s a simple 3rd party API that lets you use meeting bots to get raw audio/video from meetings without you needing to spend months to build, scale and maintain these bots. We also have a Zoom OAuth integration that makes it simple to grant bot recording permissions through the flow mentioned above.

Let me know if you have any questions!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 25, 2024, 6:00am UTC](https://devforum.zoom.us/t/zoom-web-sdk-v3-1-6-mediacapturepermission-when-there-is-no-host/105449/5 "2024-04-25T06:00:29Z")

</div>

Closed on April 25, 2024, 6:00am UTC

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