# Unable To Resize Video Component Using Client.UpdateVideoOption During Screen Share And Stop In Attendee View

**URL:** <https://devforum.zoom.us/t/unable-to-resize-video-component-using-client-updatevideooption-during-screen-share-and-stop-in-attendee-view/119249>\
**Category:** Web\
**Created:** [October 16, 2024, 2:22pm UTC](https://devforum.zoom.us/t/unable-to-resize-video-component-using-client-updatevideooption-during-screen-share-and-stop-in-attendee-view/119249 "2024-10-16T14:22:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoom.isv1](https://avatars.discourse-cdn.com/v4/letter/z/b19c9b/32.png) [@zoom.isv1](https://devforum.zoom.us/u/zoom.isv1)\
**Post date:** [October 16, 2024, 2:22pm UTC](https://devforum.zoom.us/t/unable-to-resize-video-component-using-client-updatevideooption-during-screen-share-and-stop-in-attendee-view/119249/1 "2024-10-16T14:22:44Z")

</div>

We are facing an issue where we are unable to resize the video component’s width and height using the client.updateVideoOption function when the host/speaker starts and stops screen sharing in the attendee view. We would appreciate your assistance in resolving this issue.  
Below is the shared code of the attendee view for your reference.

```
client.updateVideoOptions({
  defaultViewType: "active" as SuspensionViewType,
  viewSizes: {
    default: {
      width: widthRef,
      height: 0,
    },
  },
});

```

---

<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:** [November 16, 2024, 12:23am UTC](https://devforum.zoom.us/t/unable-to-resize-video-component-using-client-updatevideooption-during-screen-share-and-stop-in-attendee-view/119249/2 "2024-11-16T00:23:37Z")

</div>

Closed on November 16, 2024, 12:23am UTC

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