# Embed zoom video to a web server

**URL:** <https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882>\
**Category:** Web\
**Created:** [January 4, 2019, 9:56pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882 "2019-01-04T21:56:18Z")\
**Posts on this page:** 20\
**Page:** 11

<div class="post-metadata">

**Author:** ![jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jacob/32/3865_2.png) [@jacob](https://devforum.zoom.us/u/jacob)\
**Post date:** [March 26, 2020, 1:49pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/216 "2020-03-26T13:49:06Z")

</div>

There seems to be a Catch 22 here for browsers that require user interaction to resume or start the AudioContext necessary for hearing audio. The issue that I’m having that illustrates this is as follows. I’m trying to embed a zoom session on my website and when I load the site on an iOS device, I’m able to see the presenter, but not able to hear them. The reason why I can’t hear them is because the AudioContext needs to be started from a user gesture. So the provided solution in this discussion is to use `prefer=0`, the issue with that is that it doesn’t support the `un={username}` parameter. When loading an iframe with `prefer=0` the browser shows the “Enter username” field, which when clicking on Join, reloads the iframe and shows the same page again. So basically, the iframe embed doesn’t work if you don’t provide the `un` parameter and it also won’t work if you do `prefer=0`

---

<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 26, 2020, 10:39pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/217 "2020-03-26T22:39:51Z")

</div>

Hey @osman_dmr, and @jacob,

When using `prefer=1` are you following this flow which allows the user to click the options to enable audio?

 ![Screen Shot 2020-03-26 at 4.35.27 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b3c2cfd72099927c1b1a38f7df1f0421bd9d6728.jpeg)

 ![Screen Shot 2020-03-26 at 4.35.36 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/45661181d384efdb47683fcb968ad0abf2255f12.jpeg)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![osman\_dmr](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@osman\_dmr](https://devforum.zoom.us/u/osman_dmr)\
**Post date:** [March 27, 2020, 8:00am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/218 "2020-03-27T08:00:41Z")

</div>

@tommy we use iframe. it is my code =

```auto
<div class="iframe-container" style="overflow: hidden;">
    <iframe src="https://zoom.us/wc/6108402870/join?prefer=1&un=TWluZGF1Z2Fz" style="width:100%;height:100%" sandbox="allow-forms allow-scripts allow-same-origin" allow="microphone; camera; fullscreen"></iframe>
</div>

i think allow properties contains this permission.am i rigth?
do we need to do anything extra?
as far as i understand iframe is not very stable.
Can we integrate web sdk as html5?
I got a business plan. But I have asp.net mvc application. View sections are designed as html5. How to integrate web sdk here. Emergency help?
```

---

<div class="post-metadata">

**Author:** ![marcom-connect](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/marcom-connect/32/4244_2.png) [@marcom-connect](https://devforum.zoom.us/u/marcom-connect)\
**Post date:** [March 27, 2020, 5:13pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/219 "2020-03-27T17:13:12Z")

</div>

Hi,

How can we bypass the step when the user is asked for his name ? I tried to pass the “un” encoded in base64 parameter but it seems a redirect happens before and modifies the iframe src.

Here is my code :

```
<div class="iframe-container" style="overflow: hidden; padding-top: 56.25%; position: relative;">
<iframe 
sandbox="allow-forms allow-scripts allow-same-origin" 
allow="microphone; camera; fullscreen" 
style="border: 0; height: 100%; left: 0; position: absolute; top: 0; width: 100%;"
src="https://zoom.us/wc/join/{{meeting_zoom_id}}?prefer=1&un={{meeting_zoom_name}}" 
frameborder="0">
</iframe>

```

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 27, 2020, 5:20pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/220 "2020-03-27T17:20:58Z")

</div>

Hey @marcom-connect,

Make sure you are using the proper url:

`https://zoom.us/wc/{{meeting_zoom_id}}/join?prefer=1&un={{meeting_zoom_name}}`

Thanks,  
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:** [March 27, 2020, 5:22pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/221 "2020-03-27T17:22:11Z")

</div>

Hey @osman_dmr,

Yes, you can integrate the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web) with HTML and a JavaScript file.

See the same app here:

> **[zoom/sample-app-web](https://github.com/zoom/sample-app-web/tree/master/CDN)**
>
> Zoom Web SDK Sample App. Contribute to zoom/sample-app-web development by creating an account on GitHub.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![marcom-connect](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/marcom-connect/32/4244_2.png) [@marcom-connect](https://devforum.zoom.us/u/marcom-connect)\
**Post date:** [March 30, 2020, 1:45pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/222 "2020-03-30T13:45:22Z")

</div>

Thank you tommy for your previous answer.

When I go to [Error - Zoom](https://zoom.us/wc/xxxxxxxxx/join?prefer=1&un=XXXXX)  
I have no audio and I can see this message in the console :

> The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.

Microphone is not working even if I click “Leave Computer Audio” then “Join Audio by Computer”.

I tried your suggestion to use prefer=0, audio works again but now the user has to type his name.

Is there a solution to have both the audio and the instant meeting ?

---

<div class="post-metadata">

**Author:** ![akshay.bandivadekar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/akshay.bandivadekar/32/4493_2.png) [@akshay.bandivadekar](https://devforum.zoom.us/u/akshay.bandivadekar)\
**Post date:** [March 30, 2020, 2:57pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/223 "2020-03-30T14:57:06Z")

</div>

![zoom_issue_redirect](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/ef89e9c94fc45c30cd36749f2d0880d333b58e74.png)  
Hi all,  
we are trying to access  
`<iframe src="https://zoom.us/wc/{zoom-id}/join?pwd=&track_id=&jmf_code=&meeting_result=" allow="microphone;camera" sandbox="allow-same-origin allow-pointer-lock allow-scripts allow-popups allow-forms" allowFullScreenheight="500" width="500"></iframe>`  
But it goes to redirection loop(username join page), in latest chrome version Version 80.0.3987.149 (Official Build) (64-bit)  
can you please check in priority to fix it

---

<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 31, 2020, 4:41am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/224 "2020-03-31T04:41:46Z")

</div>

Hey @akshay.bandivadekar,

You need to add the following query params which will place the user into the meeting:

`&un=Base64EncodedName&=prefer=1`

Thanks,  
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:** [March 31, 2020, 4:42am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/225 "2020-03-31T04:42:35Z")

</div>

Hey @marcom-connect,

Please share your updated code so I can debug.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![marcom-connect](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/marcom-connect/32/4244_2.png) [@marcom-connect](https://devforum.zoom.us/u/marcom-connect)\
**Post date:** [March 31, 2020, 7:27am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/226 "2020-03-31T07:27:11Z")

</div>

Hi,

Using chrome latest stable Mac OS and Linux, with both cookies enabled and microphone settings activated :

I stopped using the Iframe because I had a redirect loop with agree ToS and login form. So this test only is about accessing the url in a tab.

1. Host is created (rest api)
2. Meeting is created (rest api) (with settings.join\_before\_host = true and settings.audio = ‘both’)
3. I join with [https://zoom.us/wc/185316539/join?prefer=1&un=TXMgSWxvbmEgV2ViZXI=](https://zoom.us/wc/185316539/join?prefer=1&un=TXMgSWxvbmEgV2ViZXI=)
4. First time I am redirected to a ToS agree button then I have to type my name \<= Not what I expected
5. Everytime after, I join with [https://zoom.us/wc/185316539/join?prefer=1&un=TXMgSWxvbmEgV2ViZXI=](https://zoom.us/wc/185316539/join?prefer=1&un=TXMgSWxvbmEgV2ViZXI=) I immediatly enter the meeting \<= What I expected
6. After I entered the meeting, I notice my microphone is not working even if it’s enabled in chrome for this site
7. I try to join with [https://zoom.us/wc/185316539/join?prefer=0&un=TXMgSWxvbmEgV2ViZXI=](https://zoom.us/wc/185316539/join?prefer=0&un=TXMgSWxvbmEgV2ViZXI=) for the first time, I am redirected to a ToS agree button then I have to type my name \<= Not what I expected
8. I enter the meeting and I Join audio by computer but my microphone is not working \<= Not what I expected
9. I refresh the meeting and I Join audio by computer, this time my microphone is working the way I expected

Thanks,

---

<div class="post-metadata">

**Author:** ![akshay.bandivadekar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/akshay.bandivadekar/32/4493_2.png) [@akshay.bandivadekar](https://devforum.zoom.us/u/akshay.bandivadekar)\
**Post date:** [March 31, 2020, 8:01am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/227 "2020-03-31T08:01:46Z")

</div>

@tommy  
Now its works, thanks  
`<iframe src="https://zoom.us/wc/{zoom-id}/join?prefer=1&un={Base64EncodedName}&pwd=&track_id=&jmf_code=&meeting_result=" allow="microphone;camera" sandbox="allow-same-origin allow-pointer-lock allow-scripts allow-popups allow-forms" allowFullScreen height="500" width="500"></iframe>`

But on the latest chrome browser, there is a problem with audio **Join audio by computer** not work,  
also meeting audio not audible. can you please check it  
Thanks

---

<div class="post-metadata">

**Author:** ![dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@dina](https://devforum.zoom.us/u/dina)\
**Post date:** [March 31, 2020, 4:18pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/228 "2020-03-31T16:18:33Z")

</div>

@tommy

I tried to follow all the previous answers but none of them worked. I’m trying to embed a zoom link in my adobe portfolio. This is my zoom link [https://ufl.zoom.us/j/717463126](https://ufl.zoom.us/j/717463126)

Do you know how I can do that please?

---

<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 31, 2020, 6:19pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/229 "2020-03-31T18:19:19Z")

</div>

Hey @marcom-connect,

For issues about the [Zoom Web Client](https://support.zoom.us/hc/en-us/articles/214629443-Zoom-Web-Client), please reach out to [support.zoom.us](http://support.zoom.us) as it is not apart of the [Zoom API Platform](https://marketplace.zoom.us/docs/guides).

Thanks,  
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:** [March 31, 2020, 6:20pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/230 "2020-03-31T18:20:38Z")

</div>

Hey @akshay.bandivadekar,

We are getting a few reports of that. Since the Zoom Web Client is not apart of the [Zoom API Platform](https://marketplace.zoom.us/docs/guides) please reach out to [support.zoom.us](http://support.zoom.us).

Your best bet would be to use the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web), which I am happy to help you with.

Thanks,  
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:** [March 31, 2020, 6:21pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/231 "2020-03-31T18:21:19Z")

</div>

Hey @dina,

Please let us know what you tried, and what didn’t work.

Thanks,  
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:** [April 1, 2020, 6:42am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/233 "2020-04-01T06:42:30Z")

</div>

Hey @dina,

Thanks for sharing the code. Can I ask what platform you are using to embed, browser you are seeing the issue, and what the issue is? Please share screenshots.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![prabhakar.sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prabhakar.sharma/32/35150_2.png) [@prabhakar.sharma](https://devforum.zoom.us/u/prabhakar.sharma)\
**Post date:** [April 1, 2020, 9:51pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/235 "2020-04-01T21:51:44Z")

</div>

Hi @tommy thanks for details provided above for iframe embed. We have been able to embed and join meetings using iframe without any issue. Audio also works. Video also work. The glitch is if same webpage is opened in chrome in mobile browser, on click of start video it do tries to start video but camera does not starts. The issue does not shows if used in desktop browser. Any idea why it would happen. Regards.

---

<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 2, 2020, 7:57am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/236 "2020-04-02T07:57:02Z")

</div>

Hey @dina,

Try taking the `{{ ` and `}}` out from the code. That is meant to signify a template variable.

Thanks,  
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:** [April 2, 2020, 7:57am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/237 "2020-04-02T07:57:47Z")

</div>

Hey @prabhakar.sharma,

Unfortunately on Mobile Browsers, the users video camera does not work.

Thanks,  
Tommy

[Previous page](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882.md?page=10)

[Next page](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882.md?page=12)
