# Set zIndex on attachVideo()

**URL:** <https://devforum.zoom.us/t/set-zindex-on-attachvideo/106501>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [March 26, 2024, 3:17am UTC](https://devforum.zoom.us/t/set-zindex-on-attachvideo/106501 "2024-03-26T03:17:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shi88.andy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shi88.andy/32/55545_2.png) [@shi88.andy](https://devforum.zoom.us/u/shi88.andy)\
**Post date:** [March 26, 2024, 3:17am UTC](https://devforum.zoom.us/t/set-zindex-on-attachvideo/106501/1 "2024-03-26T03:17:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/4/1469ff65813b35b65633be82eafa744e83615185.jpeg)

in our use case we’ll need the non-active speaker to be displayed on the right side on top of the fullscreen speaker, but since moving to `attachVideo()` [to solve \>4 user call], we haven’t been able to set render the smaller video on top of the fullscreen.

How to handle z-index in attachVideo()? we’ve tried setting z-index on the `<video-player/>` and by wrapping the video-player inside div then stylingit, none have been working so far

---

<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 26, 2024, 5:45am UTC](https://devforum.zoom.us/t/set-zindex-on-attachvideo/106501/2 "2024-03-26T05:45:15Z")

</div>

Hey @shi88.andy

Thanks for your feedback.

Did you mean that the smaller video overlays the fullscreen video?

To achieve overlaying, you’ll need to use multiple `video-player-containers`. The fullscreen video goes in one `video-player-container`, while the smaller video goes in another `video-player-container`.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![shi88.andy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shi88.andy/32/55545_2.png) [@shi88.andy](https://devforum.zoom.us/u/shi88.andy)\
**Post date:** [March 26, 2024, 7:55am UTC](https://devforum.zoom.us/t/set-zindex-on-attachvideo/106501/3 "2024-03-26T07:55:10Z")

</div>

thanks! this is perfect for our use case.
