# Remote user video taking entire canavs in non Chromiuim browsers

**URL:** <https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454>\
**Category:** Web\
**Created:** [May 24, 2022, 1:19pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454 "2022-05-24T13:19:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [May 24, 2022, 1:19pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/1 "2022-05-24T13:19:49Z")

</div>

For non-Chromium browsers (tested on Firefox(100.0.2 (64-bit))), we are rendering a single video in canvas but no matter what width, height or x, y coordinate we provide in `stream.renderVideo()` method remote user video is taking up entire canvas.  
This issue is not there while rendering the local user’s video.

Is it a known issue?

---

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [May 25, 2022, 6:28pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/2 "2022-05-25T18:28:25Z")

</div>

Hey @tommy , can you please check this one as well?

---

<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:** [May 25, 2022, 6:51pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/3 "2022-05-25T18:51:59Z")

</div>

Hey @shoaib ,

That is because on Firefox and Safari only 1 participant video can be rendered at a time.

More details here:

> **[Zoom Video SDK for Web](https://marketplace.zoom.us/docs/sdk/video/web/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

> **[Video](https://marketplace.zoom.us/docs/sdk/video/web/essential/video/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [May 25, 2022, 7:32pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/4 "2022-05-25T19:32:24Z")

</div>

Yes @tommy , I’m aware of that and **rendering one video at a time only.**  
We call `stream.stopRenderVideo` on local user’s video and then render remote participant’s video.

Local video is rendering fine with whatever params (width, height or x, y coordinate) we pass in `stream.renderVideo`but remote user video is taking up entire canvas.

---

<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:** [May 25, 2022, 8:21pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/5 "2022-05-25T20:21:24Z")

</div>

Hey @shoaib ,

Gotcha. Can I ask for what width, height, x and y values you are passing in?

It may be by design since you can resize the Canvas itself since only one participant video can be rendered on Firefox / Safari.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [May 25, 2022, 8:42pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/6 "2022-05-25T20:42:07Z")

</div>

I’m calculating width, height, x and y values based on viewport size, sample values as an example: 1066, 600, 40, 40 (width, height, x, y respectively).

Yes if this method doesn’t work we are thinking to adjust the canvas size and positioning only instead of video’s.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [May 26, 2022, 9:09am UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/7 "2022-05-26T09:09:52Z")

</div>

Hey @shoaib

It’s by design. If only one video can be rendered on the canvas, we will render the video base on the width and height of the canvas inside the Video SDK.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [May 26, 2022, 9:26am UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/8 "2022-05-26T09:26:59Z")

</div>

Oh got it.  
Thanks @vic.yang and @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:** [May 26, 2022, 3:26pm UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/9 "2022-05-26T15:26:35Z")

</div>

Thanks Vic!

Happy to help @shoaib ! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 26, 2022, 1:27am UTC](https://devforum.zoom.us/t/remote-user-video-taking-entire-canavs-in-non-chromiuim-browsers/69454/10 "2022-06-26T01:27:35Z")

</div>

Closed on June 26, 2022, 1:27am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
