# 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:** 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 15, 2019, 3:54pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/21 "2019-08-15T15:54:39Z")

</div>

Hey @MCosta1108, thanks for using Zoom!

What meeting ID is giving you that error?

For the iFrame redirect issue, try adding this code to your iFrame,

`sandbox="allow-forms allow-scripts"`

Example,

```auto
<iframe src="https://zoom.us/join" sandbox="allow-forms allow-scripts"></iframe>

```

> <https://stackoverflow.com/questions/369498/how-to-prevent-iframe-from-redirecting-top-level-window/9880360#9880360>

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![MCosta1108](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mcosta1108/32/1565_2.png) [@MCosta1108](https://devforum.zoom.us/u/MCosta1108)\
**Post date:** [August 15, 2019, 4:52pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/22 "2019-08-15T16:52:30Z")

</div>

Thank you that is what I needed.

---

<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 15, 2019, 6:27pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/23 "2019-08-15T18:27:14Z")

</div>

You are welcome! Happy to help! 🙂

---

<div class="post-metadata">

**Author:** ![Mindaugas](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mindaugas](https://devforum.zoom.us/u/Mindaugas)\
**Post date:** [August 25, 2019, 7:27pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/24 "2019-08-25T19:27:37Z")

</div>

Hi @michael_p.zoom,

Thanks for an iframe code.  
I embedded iframe with my meeting ID to a web server. Login section is shown on a website. When the user enters a name and clicks on the “Join” button nothing happens. Is it a solution to fix an issue?  
Please find a screenshot:

 ![17](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7742a39860f0d1040e357cb6a30e06f4a87f88f2.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:** [August 26, 2019, 3:16pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/25 "2019-08-26T15:16:20Z")

</div>

Hey @Mindaugas,

You could solve this by bypassing the meeting id and name input by using the following url as your iFrame src, which takes you right into the meeting,

`https://zoom.us/wc/{{ meetindID }}/join?prefer=1&un={{ base64Encoded Name }}`

Example

```auto
<iframe src="https://zoom.us/wc/{{ meetindID }}/join?prefer=1&un=TWluZGF1Z2Fz" sandbox="allow-forms allow-scripts" allow="microphone; camera; fullscreen"></iframe>

```

Let me know if this helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Mindaugas](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mindaugas](https://devforum.zoom.us/u/Mindaugas)\
**Post date:** [August 27, 2019, 9:14am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/26 "2019-08-27T09:14:25Z")

</div>

Hi @tommy,

Thank you for your reply.  
I have used following iframe for testing:

`<iframe src="https://zoom.us/wc/436717859/join?prefer=1&un=TWluZGF1Z2Fz" sandbox="allow-forms allow-scripts" allow="microphone; camera"></iframe>`

Solution doesn’t work properly. It shows ‘Joining Meeting…’, but never joins it. Is it a solution to fix an issue?

Please find a screenshot:

 ![43](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1bca1fce418cef118d838b4ddec937c7113e01e8.png)

---

<div class="post-metadata">

**Author:** ![Mindaugas](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mindaugas](https://devforum.zoom.us/u/Mindaugas)\
**Post date:** [August 27, 2019, 9:31am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/27 "2019-08-27T09:31:44Z")

</div>

@tommy,

I have tried to enter additional property `sandbox="allow-same-origin"` Then another “Unknown Error” is produced. Highly appreciate any help to fix it.  
Full iframe looks like that:

```auto
<iframe src="https://zoom.us/wc/436717859/join?prefer=1&un=TWluZGF1Z2Fz" sandbox="allow-forms allow-scripts allow-same-origin" allow="microphone; camera"></iframe>

```

Please find a screenshot:

 ![26](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/acf8029d1326288f2d26d8fa569e27e0cda2253b.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:** [August 27, 2019, 10:44pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/28 "2019-08-27T22:44:39Z")

</div>

Hey @Mindaugas,

Thanks for the details!

Can you check your chrome settings and make sure you are allowing cookies?

Chrome Settings \> Advanced Settings \> Under Privacy and Security click Site Settings \> Cookies \> **Make sure “Allow sites to save and read cookie data (recommended)” is checked and “Block third-party cookies” is unchecked.**

 ![17%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/f86bce4d48a037e99335c1893db0898e75c9f0bf.png)

[I found this by googling the error.](https://stackoverflow.com/a/33047477/6592510)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![omar.saleh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/omar.saleh/32/1682_2.png) [@omar.saleh](https://devforum.zoom.us/u/omar.saleh)\
**Post date:** [August 28, 2019, 10:37am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/29 "2019-08-28T10:37:01Z")

</div>

Apparently this iframe example works for me, however it only does video-wise but I can’t seem to hear anything from the meeting and when I click join audio I get this error in the console. “avsocket audio did not initial successful”, everything does work though if I’m using it on my localhost version of the app but on my production site (domain) audio doesn’t seem to work.

iframe:

```auto
<iframe style="border:none; height: 600px; width: 100%;" src="https://zoom.us/wc/{meeting-id}/join?prefer=1&un=TWluZGF1Z2Fz" sandbox="allow-forms allow-scripts allow-same-origin" allow="microphone; camera"></iframe>

```

here’s a screenshot cause I can’t upload pictures in my reply for some reasons.

 ![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/e1595ce8e339d2b0725b22442ac67465d040de13.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:** [August 28, 2019, 9:37pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/30 "2019-08-28T21:37:23Z")

</div>

Hey @omar.saleh, thanks for reaching out and using Zoom!

I was able to reproduce your issue. Basically the browser is blocking turning on the audio programmatically via the `prefer=1` query param.

> The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. [Chrome 自動播放政策 &nbsp;|&nbsp; Blog &nbsp;|&nbsp; Chrome for Developers](https://goo.gl/7K7WLu)

To fix this, use `prefer=0` and have the user click the Join with Computer Audio button, and allow site to access microphone.

 ![41%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8b7c4526f9be034fa9463122ed53bf0b73827b27.jpeg)

Then you should be able to hear the participant from the iFrame.

```html
<iframe style="border:none; height: 600px; width: 100%;" src="https://zoom.us/wc/{meeting-id}/join?prefer=0&un=TWluZGF1Z2Fz" sandbox="allow-forms allow-scripts allow-same-origin" allow="microphone; camera"></iframe>

```

Let me know if this works!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shimi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shimi/32/1149_2.png) [@shimi](https://devforum.zoom.us/u/shimi)\
**Post date:** [August 30, 2019, 1:11am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/31 "2019-08-30T01:11:34Z")

</div>

Thanks for that. It works for me, but with one problem.

Although I pass the encoded name, I still being asked to enter my name and only then click Join. Can I skip that step and join automatically?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/cd3cc9221a69f6e8ddb9de1d099fcd00d2740da4.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:** [August 30, 2019, 3:58pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/32 "2019-08-30T15:58:03Z")

</div>

Hey @shimi, happy to help!

This is happening because your meeting requires a password.

If you want to use a password and join the meeting with the webclient url, add this query param: `&pwd=passwordhere`

For example,  
[https://zoom.us/wc/{meeting-id}/join?prefer=0&un=TWluZGF1Z2Fz&pwd={password}](https://zoom.us/wc/%7Bmeeting-id%7D/join?prefer=0&un=TWluZGF1Z2Fz&pwd=%7Bpassword%7D)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![omar.saleh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/omar.saleh/32/1682_2.png) [@omar.saleh](https://devforum.zoom.us/u/omar.saleh)\
**Post date:** [August 31, 2019, 11:45am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/33 "2019-08-31T11:45:19Z")

</div>

Unfortunately that didn’t work for me still, I also noticed you tested it on a localhost app, everything’s working perfect for me when I test it on my localhost, it triggers this error only when I’m doing it on my production domain site.

Thanks.

---

<div class="post-metadata">

**Author:** ![shimi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shimi/32/1149_2.png) [@shimi](https://devforum.zoom.us/u/shimi)\
**Post date:** [September 2, 2019, 8:31am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/34 "2019-09-02T08:31:27Z")

</div>

Thanks @tommy.  
I’ve noticed that when prefer=0, I always end up in this screen, even if I add the password

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/83bf66f77430612614f42ff08968448154fe4f07.png)  
Notice that the password field was pre-populated by the query string, but name is empty.  
Can I use prefer=1? What’s the difference?  
Shimi

---

<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:** [September 3, 2019, 4:30pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/35 "2019-09-03T16:30:58Z")

</div>

Hey @shimi,

Try setting `prefer=1`. Also, are you including the `un=username` query param?

`https://zoom.us/wc/{meeting-id}/join?prefer=1&un=TWluZGF1Z2Fz&pwd={password}`

Please share your full url so I can investigate.

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:** [September 3, 2019, 4:38pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/36 "2019-09-03T16:38:05Z")

</div>

Hey @omar.saleh,

What browser and operating system are you using? Also can you please share your code here so I can help debug.

> **[Prerequisites - Getting Started - Web SDK - Native SDKs - Zoom Software...](https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/getting-started/prerequisites)**
>
> Prerequsites
> 
> 
> 
> Install a browser supported by Zooms Web SDK as shown in the table below.
> 
> Video, Computer Audio and Sharing Supported browser
> 
> 
> 
> Please...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![omar.saleh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/omar.saleh/32/1682_2.png) [@omar.saleh](https://devforum.zoom.us/u/omar.saleh)\
**Post date:** [September 4, 2019, 9:52am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/37 "2019-09-04T09:52:04Z")

</div>

Windows Server 2016 where the site’s hosted, my own client machine is running on windows 10 with chrome browser, I tested it on other browsers as well as other machines including a mac but with the same error showing up at the console log “avsocket audio did not initial successful”.

I’m coding it in C# MVC, here’s the controller’s code (this is a simplified example of it)

public ActionResult Test(string Id)  
{  
ViewBag.Id = Id;  
return View();  
}

and here’s the view’s html code

@{  
Layout = null;  
}

```
<div>
    <iframe style="border:none; height: 600px; width: 100%;" src="@string.Format("https://zoom.us/wc/{0}/join?prefer=0&un={1}", ViewBag.Id, System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("Name Test")))" sandbox="allow-forms allow-scripts allow-same-origin" allow="microphone; camera"></iframe>
</div>

```

and here’s the result iframe on the site after launch.  
iframe style=“border:none; height: 600px; width: 100%;” src=“[https://zoom.us/wc/763597368/join?prefer=0&un=2LnZhdixINmF2K3ZhdivINi12KfZhNit](https://zoom.us/wc/763597368/join?prefer=0&un=2LnZhdixINmF2K3ZhdivINi12KfZhNit)” sandbox=“allow-forms allow-scripts allow-same-origin” allow=“microphone; camera”\>\</iframe

Thanks.

---

<div class="post-metadata">

**Author:** ![kimi.beulah](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kimi.beulah/32/1729_2.png) [@kimi.beulah](https://devforum.zoom.us/u/kimi.beulah)\
**Post date:** [September 4, 2019, 11:40am UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/38 "2019-09-04T11:40:05Z")

</div>

Hi @michael_p.zoom I used the iframe

```auto
<div class="iframe-container" style="overflow: hidden; padding-top: 56.25%; position: relative;">
    	<iframe allow="microphone; camera" style="border: 0; height: 100%; left: 0; position: absolute; top: 0; width: 100%;" src="https://success.zoom.us/wc/join/{meeting-id}" frameborder="0"></iframe>
	</div>

```

and got a cookies pop up. Please see attached image.  
How do I get rid of the cookies pop up? Thanks  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3947abe59d5b694c37bdc4b47995828bc7825026.png)

---

<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:** [September 4, 2019, 8:28pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/39 "2019-09-04T20:28:49Z")

</div>

Hi @kimi.beulah,

This particular thread looks to already be resolved from a former issue. Can you make a new post concerning your issue about the cookie? From there we’ll be able to help out.

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:** [September 4, 2019, 8:59pm UTC](https://devforum.zoom.us/t/embed-zoom-video-to-a-web-server/2882/40 "2019-09-04T20:59:47Z")

</div>

Hey @omar.saleh,

I was able to reproduce that error when hosting on a live server not secured over https.

This is what I saw via http url:

 ![56%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/ac726fbf9609aedfec1b3a7ef2e549fe4e1cf294.jpeg)

I was able to fix it when I switched to https:

 ![33%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a486660133745b0dcebf753bcd845639990b2980.jpeg)

Make sure your live server is secured [via https](https://seopressor.com/blog/http-vs-https/).

> **[Microsoft Server 2016 - IIS 10 & 10.5 - SSL Installation -](https://www.sslsupportdesk.com/microsoft-server-2016-iis-10-10-5-ssl-installation/)**
>
> Like all windows systems for Server 2016 IIS 10 you will have to install your SSL on the same system where CSR was originally generated.

Thanks,  
Tommy

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

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