# How to fill containers without letter‑/pillar‑boxing?

**URL:** <https://devforum.zoom.us/t/how-to-fill-containers-without-letter-pillar-boxing/132268>\
**Category:** Web\
**Created:** [May 2, 2025, 2:55pm UTC](https://devforum.zoom.us/t/how-to-fill-containers-without-letter-pillar-boxing/132268 "2025-05-02T14:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nventurino](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nventurino/32/39339_2.png) [@nventurino](https://devforum.zoom.us/u/nventurino)\
**Post date:** [May 2, 2025, 2:55pm UTC](https://devforum.zoom.us/t/how-to-fill-containers-without-letter-pillar-boxing/132268/1 "2025-05-02T14:55:14Z")

</div>

SDK / stack: Zoom Video SDK Web v2.1.10 (WebRTC) in a Next.js 15 app.

My goal is to make each participant’s video completely fill whatever container we give it (no black bars), even when the container’s aspect ratio ≠ 16 : 9. Ideally this would work the same way object-fit: cover; works on a normal `<video>` tag.

Is this possible with purely CSS on the `<video-player>` or `<video-player-container>` element? or will a custom “scaling” function be needed?

Has anyone already solved this and would share code or best practices?

@vic.yang

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/d/6d62897f129e61fd4b3bebd3af87973eec6db371.jpeg)

---

<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:** [May 6, 2025, 6:16am UTC](https://devforum.zoom.us/t/how-to-fill-containers-without-letter-pillar-boxing/132268/2 "2025-05-06T06:16:21Z")

</div>

Hey @nventurino

Thanks for your feedback.

> Is this possible with purely CSS on the `<video-player>` or `<video-player-container>` element? or will a custom “scaling” function be needed?

Currently, it may not be possible, because the receiving side does not know the actual aspect ratio of the sender when setting the `video-player` style. However, this can be handled by using the `video-aspect-ratio-change` event. You can refer to this documentation.

> **[Video SDK - web - Handle events](https://developers.zoom.us/docs/video-sdk/web/handle-events/#video-aspect-ratio-change)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![nventurino](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nventurino/32/39339_2.png) [@nventurino](https://devforum.zoom.us/u/nventurino)\
**Post date:** [May 6, 2025, 4:10pm UTC](https://devforum.zoom.us/t/how-to-fill-containers-without-letter-pillar-boxing/132268/3 "2025-05-06T16:10:57Z")

</div>

ok thank you. I’ll give it a try

---

<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:** [May 6, 2026, 4:11pm UTC](https://devforum.zoom.us/t/how-to-fill-containers-without-letter-pillar-boxing/132268/4 "2026-05-06T16:11:53Z")

</div>

Closed on May 6, 2026, 4:11pm UTC

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