# Scaling Issues when Share Screen in Firefox / Safari

**URL:** <https://devforum.zoom.us/t/scaling-issues-when-share-screen-in-firefox-safari/76494>\
**Category:** Web\
**Tags:** web-meeting-sdk\
**Created:** [September 26, 2022, 2:26am UTC](https://devforum.zoom.us/t/scaling-issues-when-share-screen-in-firefox-safari/76494 "2022-09-26T02:26:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erwinkarim](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erwinkarim/32/33338_2.png) [@erwinkarim](https://devforum.zoom.us/u/erwinkarim)\
**Post date:** [September 26, 2022, 2:26am UTC](https://devforum.zoom.us/t/scaling-issues-when-share-screen-in-firefox-safari/76494/1 "2022-09-26T02:26:04Z")

</div>

* * *

### Format Your New Topic as Follows:

**Video SDK Type and Version**  
_Share the Video SDK type and version you’re working with to give relevant context._  
Version 1.4 Web SDK

**Description**  
_Details on your question, workflow or the problem you’re trying to solve._  
Trying to integrate share screen feature using zoom in our Vue based app. User suppose to be able to share their screen and record the zoom session using share screen.

**Error?**  
_The full error message or issue you are running into, where applicable._  
Basically when you initiate the share screen function in the stream, the video of the screen share will project to the relevent canvas element. however, it is shown on 1:1 scale instead of trying to fit inside the canvas (with a predefined width and height property). This cause problems especially when you are using a retina display like on Macs.

However, the same code works beautifully on chrome where the video is projected on a video element. it scaled within the confines of the video element without issues.

here is the video of the screen share feature in action:-

[https://drive.google.com/file/d/1FFLVPaUuOdQJtbwk\_h39eOJc7uExDIkm/view?usp=sharing](https://drive.google.com/file/d/1FFLVPaUuOdQJtbwk_h39eOJc7uExDIkm/view?usp=sharing)

**Troubleshooting Routes**  
_The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on [Zoom · GitHub](https://github.com/zoom))._

using sample code on the documentation produced same results. In the reference, there’s a ScreenShareOption inteface with captureWidth and captureHeight option. doesn’t do anything.

**How To Reproduce**  
_Steps to reproduce the behavior including:_  
_1. Authentication method or app type_  
_2. Any errors_  
_3. Browser/client type and version_

1. as per normal
2. no errors, the video works, i can record and capture the stream but it does not scale into the canvas properly.
3. this behavior is observed on Safari & Firefox.

---

<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:** [September 26, 2022, 7:02am UTC](https://devforum.zoom.us/t/scaling-issues-when-share-screen-in-firefox-safari/76494/2 "2022-09-26T07:02:19Z")

</div>

Hey @erwinkarim

Thanks for your feedback.

It seems the issue of the sample app. We will update it later.

For the issue that you had when using the Video SDK, We recommend using the following HTML structure:

```nohighlight
<div class="share-viewport">
  <canvas class="share-canvas" width="1920" height="1080"></canvas>
</div>

```

```css
.share-viewport {
  width: [fit to the window];
  height: [fic to the window];
}
.share-canvas {
  width: 100%;
  height: 100%;
}

```

The `share-viewport` container serves as the viewport, it can fit to the window or parent container, the `share-canvas` is the actual place to draw the sharing content, and the width and height attributes are the properties of the canvas, but you can style it with CSS, so it can be fit in the viewport.

Hope this can help you.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![erwinkarim](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/erwinkarim/32/33338_2.png) [@erwinkarim](https://devforum.zoom.us/u/erwinkarim)\
**Post date:** [September 27, 2022, 2:13am UTC](https://devforum.zoom.us/t/scaling-issues-when-share-screen-in-firefox-safari/76494/3 "2022-09-27T02:13:14Z")

</div>

Hi Vic,

thanks, this actually works with some css magic

---

<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:** [October 27, 2022, 12:13pm UTC](https://devforum.zoom.us/t/scaling-issues-when-share-screen-in-firefox-safari/76494/4 "2022-10-27T12:13:45Z")

</div>

Closed on October 27, 2022, 12:13pm UTC

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