# Can I render to galleries on one page with two different canvas elements?

**URL:** <https://devforum.zoom.us/t/can-i-render-to-galleries-on-one-page-with-two-different-canvas-elements/90805>\
**Category:** Video SDK\
**Created:** [June 24, 2023, 9:47am UTC](https://devforum.zoom.us/t/can-i-render-to-galleries-on-one-page-with-two-different-canvas-elements/90805 "2023-06-24T09:47:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakov.yarmo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yakov.yarmo/32/49722_2.png) [@yakov.yarmo](https://devforum.zoom.us/u/yakov.yarmo)\
**Post date:** [June 24, 2023, 9:47am UTC](https://devforum.zoom.us/t/can-i-render-to-galleries-on-one-page-with-two-different-canvas-elements/90805/1 "2023-06-24T09:47:02Z")

</div>

can I render to galleries on one page with two different canvas elements?

---

<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:** [June 25, 2023, 2:46am UTC](https://devforum.zoom.us/t/can-i-render-to-galleries-on-one-page-with-two-different-canvas-elements/90805/2 "2023-06-25T02:46:01Z")

</div>

Hey @yakov.yarmo

Thanks for your feedback.

It’s feasible but we don’t recommend rendering videos on different canvases, it may have performance issues.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![yakov.yarmo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yakov.yarmo/32/49722_2.png) [@yakov.yarmo](https://devforum.zoom.us/u/yakov.yarmo)\
**Post date:** [June 25, 2023, 1:52pm UTC](https://devforum.zoom.us/t/can-i-render-to-galleries-on-one-page-with-two-different-canvas-elements/90805/3 "2023-06-25T13:52:25Z")

</div>

how can I do that?  
When I tried it didn’t render.

---

<div class="post-metadata">

**Author:** ![yakov.yarmo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yakov.yarmo/32/49722_2.png) [@yakov.yarmo](https://devforum.zoom.us/u/yakov.yarmo)\
**Post date:** [June 25, 2023, 1:56pm UTC](https://devforum.zoom.us/t/can-i-render-to-galleries-on-one-page-with-two-different-canvas-elements/90805/4 "2023-06-25T13:56:32Z")

</div>

I’m trying to achieve speaker view for more then 3 people.  
But I’m not able to render the same participant twice.  
I need to render it both on the speaker canvas and the gallery canvas.

---

<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:** [June 26, 2023, 2:09am UTC](https://devforum.zoom.us/t/can-i-render-to-galleries-on-one-page-with-two-different-canvas-elements/90805/5 "2023-06-26T02:09:00Z")

</div>

Hey @yakov.yarmo

Do you need to render the same participant more than once on the same canvas?

The `stream.renderVideo` method accepts an additional key parameter, which is used to render the same participant on different coordinates of the canvas.

If this value is not set, `userId` will be used as a unique value. If it is set, `userId` and `additionalUserKey` will be combined as a unique value.

Thanks  
Vic
