# adjustRenderedVideoPosition doesn't work unless quality is set to 0

**URL:** <https://devforum.zoom.us/t/adjustrenderedvideoposition-doesnt-work-unless-quality-is-set-to-0/79255>\
**Category:** Web\
**Created:** [November 24, 2022, 1:11am UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-doesnt-work-unless-quality-is-set-to-0/79255 "2022-11-24T01:11:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ycz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ycz/32/43284_2.png) [@ycz](https://devforum.zoom.us/u/ycz)\
**Post date:** [November 24, 2022, 1:11am UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-doesnt-work-unless-quality-is-set-to-0/79255/1 "2022-11-24T01:11:39Z")

</div>

**Description**  
Hi all! I have a working React app using the Video SDK. Everything works great, with one exception - when I’m trying to adjust the layout of the video call, `stream.adjustRenderedVideoPosition` doesn’t work unless the argument for video quality is set to 0. That is, calling

`stream.adjustRenderedVideoPosition(canvas, 16779264, 480, 270, 480, 270, 0)`

will have the intended effect, but

`stream.adjustRenderedVideoPosition(canvas, 16779264, 480, 270, 480, 270, 3)`

will do nothing. This behavior seems to be the same regardless of what the original video quality was, where it was previously positioned, or where in the React lifecycle I call `adjustRenderedVideoPosition`, including from the browser console.

My workaround has been to simply `stopRenderVideo` and `renderVideo` for every user whenever the list of participants changes, which obviously isn’t ideal since it causes some noticeable flickering whenever someone joins or leaves.

I’ve tried running the sample app (react-video-sdk-demo), and `adjustRenderedVideoPosition` seems to work there, so I’m not sure why it isn’t working in my application. Any help is appreciated!

**Which Web Video SDK version?**  
1.5.5

**Device (please complete the following information):**

- Device: Macbook Pro
- OS: macOS 12.5.1
- Browser: Chrome

---

<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:** [November 24, 2022, 5:25am UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-doesnt-work-unless-quality-is-set-to-0/79255/2 "2022-11-24T05:25:56Z")

</div>

Hey @ycz

Thanks for your feedback.

The last parameter of `stream. adjustRenderedVideoPosition` is not the video quality. The purpose of this method is to adjust the coordinate position of the video on the canvas

> **[Stream | Zoom Video SDK for Web - 1.5.5](https://marketplacefront.zoom.us/sdk/custom/web/modules/stream.html#adjustrenderedvideoposition)**
>
> Documentation for Zoom Video SDK for Web - 1.5.5

You can try the `stream.renderVideo()` with the same userId and the latest video quality again. It’s unnecessary to call the `stream.stopRenderVideo` in this case, we will handle it properly inside the Video SDK Web.

Thanks  
Vic

---

<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:** [December 24, 2022, 3:26pm UTC](https://devforum.zoom.us/t/adjustrenderedvideoposition-doesnt-work-unless-quality-is-set-to-0/79255/3 "2022-12-24T15:26:25Z")

</div>

Closed on December 24, 2022, 3:26pm UTC

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