# 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:** 20\
**Page:** 2

<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:** [August 5, 2019, 11:58pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/21 "2019-08-05T23:58:17Z")

</div>

Hey @kevinatzoom,

The JS SDK will work with OAuth next year. You can follow our [release log](https://marketplace.zoom.us/docs/changelog) here.

You can use your JWT token to access our rest API’s.

Just set the `authorization` header to your JWT token like this:

`"Authorization": "Bearer {{ JWT TOKEN HERE }}"`

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![kevinatzoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kevinatzoom/32/1393_2.png) [@kevinatzoom](https://devforum.zoom.us/u/kevinatzoom)\
**Post date:** [August 6, 2019, 3:59pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/22 "2019-08-06T15:59:35Z")

</div>

Hi Tommy,  
Thank you so much, your answers have great help to me.  
Kevin

---

<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:** [August 6, 2019, 4:04pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/23 "2019-08-06T16:04:43Z")

</div>

Happy to help @kevinatzoom! 🙂

-Tommy

---

<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:** [August 7, 2019, 10:37pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/24 "2019-08-07T22:37:32Z")

</div>

@kevinatzoom,

To enable the camera and mic in the iFrame you can add this attribute:

`allow="microphone; camera"`

```auto
<iframe allow="microphone; camera" src="https://success.zoom.us/wc/join/{meeting-id}"></iframe>

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vivek.pipaliya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vivek.pipaliya/32/3371_2.png) [@vivek.pipaliya](https://devforum.zoom.us/u/vivek.pipaliya)\
**Post date:** [March 2, 2020, 1:49pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/25 "2020-03-02T13:49:56Z")

</div>

I have reviewed the conversation and found that zoom don’t have any integration which works together with Javascript SDK & REST APIs.  
I have created meeting using Rest API and then I want to start that meeting immediately in web page using Javascript SDK without using iframe.

I see comment by @tommy that JS SDK will work with OAuth this year. Is there any update on this? Because If I open meeting in iframe then I don’t have much control on meeting window like setting leaveUrl, invite options etc.

---

<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:** [March 2, 2020, 4:19pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/26 "2020-03-02T16:19:05Z")

</div>

Hey @vivek.pipaliya, thanks for posting and using Zoom!

You can use the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web) to [start instant meetings](https://devforum.zoom.us/t/query-for-web-sdk-integration-with-angular-7/5819/19), or start / join meetings that have been created by the [API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate).

As for connecting the Web SDK with [OAuth](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app), a workaround could be using both, and passing in the logged in users email and name to the respective Web SDK params.

> <https://github.com/zoom/sample-app-web/blob/master/CDN/js/index.js#L63>

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vivek.pipaliya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vivek.pipaliya/32/3371_2.png) [@vivek.pipaliya](https://devforum.zoom.us/u/vivek.pipaliya)\
**Post date:** [March 3, 2020, 5:48am UTC](https://devforum.zoom.us/t/host-in-browser/4528/27 "2020-03-03T05:48:09Z")

</div>

Hi @tommy I have tried what you’ve suggested here. But it’s saying “joining fail” and black screen appears only. FYI, I am not using the same developer account to login using oAuth (It means both developer account from which API Key generated and the account I am using for login are different).

When I pass role: 0 it says “meeting not started”. When I pass 1 it says “joining fail”.

Here is my code snippet.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/5687164e5b859b3fb32fa78c77a62d94cffa5572.png)

---

<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:** [March 3, 2020, 4:58pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/28 "2020-03-03T16:58:18Z")

</div>

Hey @vivek.pipaliya,

Can you share the meeting number to [developersupport@zoom.us](mailto:developersupport@zoom.us) so I can look at the logs?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vivek.pipaliya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vivek.pipaliya/32/3371_2.png) [@vivek.pipaliya](https://devforum.zoom.us/u/vivek.pipaliya)\
**Post date:** [March 12, 2020, 1:22pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/29 "2020-03-12T13:22:24Z")

</div>

Here is the meeting ID:

---

<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:** [March 12, 2020, 6:08pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/30 "2020-03-12T18:08:54Z")

</div>

Hey @vivek.pipaliya,

> [@vivek.pipaliya](#):
>
> When I pass role: 0 it says “meeting not started”.

Make sure the meeting is started, or you have [join before host enabled](https://support.zoom.us/hc/en-us/articles/202828525-Join-Before-Host).

Let me know if that works.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vivek.pipaliya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vivek.pipaliya/32/3371_2.png) [@vivek.pipaliya](https://devforum.zoom.us/u/vivek.pipaliya)\
**Post date:** [March 13, 2020, 5:35am UTC](https://devforum.zoom.us/t/host-in-browser/4528/31 "2020-03-13T05:35:09Z")

</div>

Can you please read all my old messages and respond?

I have created instant meeting using Rest API (OAuth). And I want to start that meeting using Web SDK.

Let me know if it is possible.

---

<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:** [March 13, 2020, 4:16pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/32 "2020-03-13T16:16:50Z")

</div>

Hey @vivek.pipaliya,

Here is how to start a meeting using the Web SDK:

> [@Is it possible to start the meeting from web sdk like joining meeting?](https://devforum.zoom.us/t/is-it-possible-to-start-the-meeting-from-web-sdk-like-joining-meeting/5772/2):
>
> Hey @tech1, thanks for posting. Yes you can start a meeting via the Web SDK. Just change the role in the meetConfig object to 1 Thanks, Tommy

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vivek.pipaliya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vivek.pipaliya/32/3371_2.png) [@vivek.pipaliya](https://devforum.zoom.us/u/vivek.pipaliya)\
**Post date:** [March 13, 2020, 4:33pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/33 "2020-03-13T16:33:52Z")

</div>

I know we can pass role 1 to host meeting but it only works with the account from which API keys created. I want to start meeting which is created by any user using OAuth Rest API (That’s what I have mentioned in my initial question)

Is there any option to do that?

Can you please read this full thread before reply because it seems you are repeating the same thing again & again.

---

<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:** [March 13, 2020, 4:36pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/34 "2020-03-13T16:36:47Z")

</div>

Hey @vivek.pipaliya,

If you are asking to start the meeting progrmatically that is not possible.

A real user / host of the meeting has to start the meeting using the start\_url or start meeting buttons on the Zoom App, or Zoom Web Portal.

Does that answer your question?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vivek.pipaliya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vivek.pipaliya/32/3371_2.png) [@vivek.pipaliya](https://devforum.zoom.us/u/vivek.pipaliya)\
**Post date:** [March 13, 2020, 4:47pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/35 "2020-03-13T16:47:56Z")

</div>

Let me explain you by this example:

OAuth API key & secret is created from account “test1@email.com“

User “test2@email.com” is logged in using OAuth in my app. And creating instant meeting using Rest Api by passing access token in header.

Now, he want to start that meeting using web sdk only (not using start\_url in iframe).

Let me know if this is possible.

Thanks

---

<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:** [March 13, 2020, 9:28pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/36 "2020-03-13T21:28:26Z")

</div>

Hey @vivek.pipaliya,

Thanks for the explanation.

The Web SDK can only **start meetings** that are owned by a user on the same account as the JWT.

The Web SDK can however **join meetings** that are not owned by a user on the same account as the JWT.

So the meeting will need to be started via the start\_url by the host, and then any attendee can use the Web SDK to join that meeting.

Does that clear things up?

-Tommy

---

<div class="post-metadata">

**Author:** ![farooq.ahmed](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@farooq.ahmed](https://devforum.zoom.us/u/farooq.ahmed)\
**Post date:** [April 10, 2020, 9:33am UTC](https://devforum.zoom.us/t/host-in-browser/4528/37 "2020-04-10T09:33:21Z")

</div>

Hi i implemented this. this msg showing  
Your browser doesn’t support using computer’s Audio device, please upgrade your browser to the latest version.

can u plz suggest me.  
Regards,  
Farooq

---

<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:** [April 10, 2020, 7:48pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/38 "2020-04-10T19:48:26Z")

</div>

@farooq.ahmed What browser/version and device are you using?

---

<div class="post-metadata">

**Author:** ![farooq.ahmed](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@farooq.ahmed](https://devforum.zoom.us/u/farooq.ahmed)\
**Post date:** [April 11, 2020, 7:00am UTC](https://devforum.zoom.us/t/host-in-browser/4528/39 "2020-04-11T07:00:26Z")

</div>

Google Chrome 80.0.3987.163 version.

---

<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:** [April 13, 2020, 6:27pm UTC](https://devforum.zoom.us/t/host-in-browser/4528/40 "2020-04-13T18:27:49Z")

</div>

Hey @farooq.ahmed,

Are you serving your site over `https`?

-Tommy

[Previous page](https://devforum.zoom.us/t/host-in-browser/4528.md?page=1)

[Next page](https://devforum.zoom.us/t/host-in-browser/4528.md?page=3)
