# Endmeeting via JS

**URL:** <https://devforum.zoom.us/t/endmeeting-via-js/4780>\
**Category:** Web\
**Created:** [June 27, 2019, 10:33am UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780 "2019-06-27T10:33:09Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [June 27, 2019, 10:33am UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780/1 "2019-06-27T10:33:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 28, 2019, 12:55am UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780/2 "2019-06-28T00:55:57Z")

</div>

@harald.glanzer,

Thank you for reaching out to us, we will update you shortly.

Thanks

---

<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 3, 2019, 10:58am UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780/3 "2019-07-03T10:58:07Z")

</div>

hi again,

are there any news regarding how to become a host via sample-web-app, i.e. login via username / password?

is it possible via ZoomMtg.join() to set the credentials, instead of name / room-password?

or, alternatively, would it be possible to use some kind of ‘no host’ meeting rooms, i.e. rooms for which no host must be logged in? now, i get the message ‘meeting ended because host didnt show up’ after some time if different clients connect to my personal meeting room, without logging in with username and password.

thx  
hari

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [July 3, 2019, 10:27pm UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780/4 "2019-07-03T22:27:35Z")

</div>

Hi @harald.glanzer,

> [@harald.glanzer](#):
>
> are there any news regarding how to become a host via sample-web-app, i.e. login via username / password?

Not at this time, by setting the Role to 1, the person initiating the meeting is the host.

> [@harald.glanzer](#):
>
> is it possible via ZoomMtg.join() to set the credentials, instead of name / room-password?

Not at this time, we’ll take a look to see.

> [@harald.glanzer](#):
>
> or, alternatively, would it be possible to use some kind of ‘no host’ meeting rooms, i.e. rooms for which no host must be logged in? now, i get the message ‘meeting ended because host didnt show up’ after some time if different clients connect to my personal meeting room, without logging in with username and password.

Currently, the host will have to show up to the meeting in order for the meeting to continue after some time.

---

<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 4, 2019, 9:35am UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780/5 "2019-07-04T09:35:13Z")

</div>

my fault, i just missed the ‘role’ parameter.

thx!  
hari

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [July 16, 2019, 4:08am UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780/6 "2019-07-16T04:08:33Z")

</div>

Hi @harald.glanzer,

Let us know if you need anything else.

Thanks

---

<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, 6:31pm UTC](https://devforum.zoom.us/t/endmeeting-via-js/4780/7 "2020-08-21T18:31:16Z")

</div>


