# Host in Browser

**URL:** <https://devforum.zoom.us/t/host-in-browser/4528>\
**Category:** Web\
**Created:** [June 6, 2019, 12:43am UTC](https://devforum.zoom.us/t/host-in-browser/4528 "2019-06-06T00:43:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![harald.glanzer](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@harald.glanzer](https://devforum.zoom.us/u/harald.glanzer)\
**Post date:** [July 29, 2019, 8:49am UTC](https://devforum.zoom.us/t/host-in-browser/4528/4 "2019-07-29T08:49:04Z")

</div>

hi,

using the JS SDK, when generating the signature with ZoomMtg.generateSignature(), you can set the ‘role’ to 1 to become a host.

> [@Endmeeting via JS](https://devforum.zoom.us/t/endmeeting-via-js/4780):
>
> hi, how is ‘endMeeting’ to be used? i guess this only works for logged in users, but how to do that via JS API? regards, hari

regrads,  
hari

---

_[View the full topic](https://devforum.zoom.us/t/host-in-browser/4528)._
