# Zoom Web SDK: Cannot update shared video quality when screen share is not started on updateSharingCanvasDimension

**URL:** <https://devforum.zoom.us/t/zoom-web-sdk-cannot-update-shared-video-quality-when-screen-share-is-not-started-on-updatesharingcanvasdimension/102911>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [January 31, 2024, 3:33pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-cannot-update-shared-video-quality-when-screen-share-is-not-started-on-updatesharingcanvasdimension/102911 "2024-01-31T15:33:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![managexam](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@managexam](https://devforum.zoom.us/u/managexam)\
**Post date:** [January 31, 2024, 3:33pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-cannot-update-shared-video-quality-when-screen-share-is-not-started-on-updatesharingcanvasdimension/102911/1 "2024-01-31T15:33:28Z")

</div>

**Description**  
I use the VideoSDK to share camera, audio & screen on a single room between 2 participants. The sharing is ok, but i get a canvas (or video) for screen share very big: 1512\*982. So i tried to call the Stream function updateSharingCanvasDimension ([Stream | Zoom Video SDK for Web - 1.10.5](https://marketplacefront.zoom.us/sdk/custom/web/modules/Stream.html#updateSharingCanvasDimension)) but i got this error: {type: ‘INVALID\_OPERATION’, reason: ‘Cannot update shared video quality when screen share is not started’}

The share is active and visible on both side, host and other participant so screen share is started…

**Browser Console Error**  
{type: ‘INVALID\_OPERATION’, reason: ‘Cannot update shared video quality when screen share is not started’}

**Which Web Video SDK version?**  
“@zoom/videosdk”: “^1.10.5”

**Video SDK Code Snippets**  
` ( this.stream?.isStartShareScreenWithVideoElement() ? this.stream.startShareScreen(document.querySelector('#my-screen-share-content-video')) // document.querySelector('#my-screen-share-content-video').style.display = 'block' : this.stream.startShareScreen(document.querySelector('#my-screen-share-content-canvas')) // document.querySelector('#my-screen-share-content-canvas').style.display = 'block' ).then(() => { this.stream?.updateSharingCanvasDimension(ZOOM_VIDEO_SPECS.width, ZOOM_VIDEO_SPECS.height); this.stream?.updateSharedVideoQuality(ZOOM_VIDEO_SPECS.quality); // document.querySelector(`#my-screen-share-content-${previewRenderElementScreen}`).width = ZOOM_VIDEO_SPECS.width; // document.querySelector(`#my-screen-share-content-${previewRenderElementScreen}`).height = ZOOM_VIDEO_SPECS.height; this.setState({ previewRenderElementScreen, }, resolve); }).catch(err => { this.handleError(err, 'StartScreen', { previewRenderElementScreen }); resolve(); }); `

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
Create client  
Get Zoom token  
Join room  
Start sharing audio, video & screen  
Call updateSharedVideoQuality stream function

**Device (please complete the following information):**  
I tried on ChromeV120 & FirefoxV121 on MacOs Sonoma 14.2.1

Thanks for your help

---

<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:** [March 2, 2024, 1:33am UTC](https://devforum.zoom.us/t/zoom-web-sdk-cannot-update-shared-video-quality-when-screen-share-is-not-started-on-updatesharingcanvasdimension/102911/2 "2024-03-02T01:33:57Z")

</div>

Closed on March 2, 2024, 1:33am UTC

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

---

<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:** [March 5, 2024, 7:24am UTC](https://devforum.zoom.us/t/zoom-web-sdk-cannot-update-shared-video-quality-when-screen-share-is-not-started-on-updatesharingcanvasdimension/102911/3 "2024-03-05T07:24:09Z")

</div>

Hey @managexam

Sorry for the late reply.

From the error message, it seems like you may have incorrectly called the `stream.updateSharedVideoQuality` method. This method is only effective when optimized for shared video is enabled.

> **[ScreenShareOption | Zoom Video SDK for Web - 1.10.8](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/ScreenShareOption.html#optimizedForSharedVideo)**
>
> Documentation for Zoom Video SDK for Web - 1.10.8

Thanks  
Vic
