# How to disable video with a function

**URL:** <https://devforum.zoom.us/t/how-to-disable-video-with-a-function/30596>\
**Category:** Web\
**Created:** [September 17, 2020, 4:25pm UTC](https://devforum.zoom.us/t/how-to-disable-video-with-a-function/30596 "2020-09-17T16:25:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luckmenez](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/luckmenez/32/4307_2.png) [@luckmenez](https://devforum.zoom.us/u/luckmenez)\
**Post date:** [September 17, 2020, 4:25pm UTC](https://devforum.zoom.us/t/how-to-disable-video-with-a-function/30596/1 "2020-09-17T16:25:55Z")

</div>

We need to custom the interface buttons on Zoom, it’s almost everything done. But we don’t find any video function to disable the user’s video trough this custom button.

We need a function like this below (but for the video):

```
ZoomMtg.mute({
    userId: 16797696,
    mute: true
});

```

There’s a way to make this implementation?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 21, 2020, 7:09pm UTC](https://devforum.zoom.us/t/how-to-disable-video-with-a-function/30596/2 "2020-09-21T19:09:20Z")

</div>

Hi @luckmenez,

The disable video functionality should be included as part of the core functionalities offered out of the box for our Web SDK. There’s not currently a custom function to control this.

However, if you wish to set video on or off for participants beforehand, you can do this programmatically when you create the meeting (using the `participant_video` setting) in our [Create Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate).

I hope this helps to clarify,  
Will

---

<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:** [October 22, 2020, 5:09am UTC](https://devforum.zoom.us/t/how-to-disable-video-with-a-function/30596/3 "2020-10-22T05:09:26Z")

</div>

Closed on October 22, 2020, 5:09am UTC

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