# Web SDK: Can i lock the video to host using web sdk?

**URL:** <https://devforum.zoom.us/t/web-sdk-can-i-lock-the-video-to-host-using-web-sdk/15464>\
**Category:** Web\
**Created:** [April 29, 2020, 6:00pm UTC](https://devforum.zoom.us/t/web-sdk-can-i-lock-the-video-to-host-using-web-sdk/15464 "2020-04-29T18:00:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinkhanna](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nitinkhanna/32/6286_2.png) [@nitinkhanna](https://devforum.zoom.us/u/nitinkhanna)\
**Post date:** [April 29, 2020, 6:00pm UTC](https://devforum.zoom.us/t/web-sdk-can-i-lock-the-video-to-host-using-web-sdk/15464/1 "2020-04-29T18:00:02Z")

</div>

I am currently building a prototype on top of web sdk. I want to restrict the video to that of the host only. Can I do this programmatically. I have 2 use cases:

1. API to lock video to only the host
2. API to allow others to join with video as well

Is there a way to enable only audio and no video from non hosts using the web sdk.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 1, 2020, 10:53pm UTC](https://devforum.zoom.us/t/web-sdk-can-i-lock-the-video-to-host-using-web-sdk/15464/2 "2020-05-01T22:53:43Z")

</div>

Hey @nitinkhanna,

You can toggle the Participant Video / Audio settings at the [meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate), [user](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usersettingsupdate), or [account](https://marketplace.zoom.us/docs/api-reference/zoom-api/accounts/accountsettingsupdate) level with the API or UI:

 ![Screen Shot 2020-05-01 at 4.52.16 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7e7e10a0ebad8a9b9b7dd95785febca4640ceb59.png)

 ![Screen Shot 2020-05-01 at 4.53.22 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a3a16e66f286440bc02f70f470fa050074c4464c.png)

For view only attendees it is best to use [Zoom Webinar](https://support.zoom.us/hc/en-us/articles/200917029-Getting-Started-With-Webinar) instead of meeting.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:01pm UTC](https://devforum.zoom.us/t/web-sdk-can-i-lock-the-video-to-host-using-web-sdk/15464/3 "2020-08-21T21:01:03Z")

</div>

Closed on August 21, 2020, 9:01pm UTC


