# Position of rendered video is not as expected

**URL:** <https://devforum.zoom.us/t/position-of-rendered-video-is-not-as-expected/98993>\
**Category:** Video SDK\
**Created:** [November 25, 2023, 4:15pm UTC](https://devforum.zoom.us/t/position-of-rendered-video-is-not-as-expected/98993 "2023-11-25T16:15:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [November 25, 2023, 4:15pm UTC](https://devforum.zoom.us/t/position-of-rendered-video-is-not-as-expected/98993/1 "2023-11-25T16:15:04Z")

</div>

* * *

### Format Your New Topic as Follows:

**Video SDK Type and Version**  
Web VideoSDK v 1.9.8

**Description**  
I’m trying to render all streams (including self) on one canvas. I’m now seeing weird behavior, where I call `stream.renderVideo` with coordinates (1,1), but the video is being displayed in the bottom of the canvas, e.g. at (1,200). Any clues as to why this is?

---

<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 27, 2023, 2:32am UTC](https://devforum.zoom.us/t/position-of-rendered-video-is-not-as-expected/98993/2 "2023-11-27T02:32:48Z")

</div>

Hey @fides-it

Thanks for your feedback.

I apologize for the inconvenience. There is a slight disparity in the coordinate origin between the `stream.renderVideo` method and the DOM. The coordinate origin is the **bottom-left corner** of the canvas, which means that when calculating the y-axis coordinate, you need to subtract the y-axis coordinate in the DOM from the height of the canvas.

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

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![fides-it](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fides-it/32/51395_2.png) [@fides-it](https://devforum.zoom.us/u/fides-it)\
**Post date:** [November 27, 2023, 6:36am UTC](https://devforum.zoom.us/t/position-of-rendered-video-is-not-as-expected/98993/3 "2023-11-27T06:36:04Z")

</div>

ahh thanks… I got it working now. I also had to deduct the height of the rendered video btw, because I used the top left coordinate of the video as position

```auto
placement.y + (this.viewHeight) - placement.height

```
