# Getting aspect ratio updates for local and remote user

**URL:** <https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630>\
**Category:** Twilio Migration\
**Tags:** android, ios\
**Created:** [February 27, 2024, 4:19pm UTC](https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630 "2024-02-27T16:19:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelpetersen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michaelpetersen/32/49650_2.png) [@michaelpetersen](https://devforum.zoom.us/u/michaelpetersen)\
**Post date:** [February 27, 2024, 4:19pm UTC](https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630/1 "2024-02-27T16:19:24Z")

</div>

I can see it is possible to get the aspect ratio from a user using width and height from a `ZoomVideoSDKUser` by combining `.getVideoStatisticInfo().<width/height>` in Swift.

But is it possible to listen for changes? We would like to do some custom layout based on the aspect ratio.

And related to this. Is it possible to change the background color in a call?  
I am thinking about the black bars around the video. We would like to use our theme color.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 1, 2024, 8:36pm UTC](https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630/2 "2024-03-01T20:36:47Z")

</div>

Hey @michaelpetersen ,

Have you taken a look at the aspect ratio docs?

Android: [ZoomVideoSDKVideoAspect (Zoom.us SDK API Document)](https://marketplacefront.zoom.us/sdk/custom/android/us/zoom/sdk/ZoomVideoSDKVideoAspect.html)

iOS: [iOS Video SDK API Reference: ZoomVideoSDKVideoCanvas Class Reference](https://marketplacefront.zoom.us/sdk/custom/ios/interface_zoom_video_s_d_k_video_canvas.html#a32eec2d827ceca079a14f86b9ab81387)

Best,  
Tommy

---

<div class="post-metadata">

**Author:** ![michaelpetersen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michaelpetersen/32/49650_2.png) [@michaelpetersen](https://devforum.zoom.us/u/michaelpetersen)\
**Post date:** [March 2, 2024, 4:43pm UTC](https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630/3 "2024-03-02T16:43:44Z")

</div>

Hi @tommy ,

I am sorry if my question wasn’t clear.

What I am looking for is the format e.g. 16:9 or 9:16, and a way to get some kind of callback whenever it changes : )

---

<div class="post-metadata">

**Author:** ![richard.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard.zoom/32/41061_2.png) [@richard.zoom](https://devforum.zoom.us/u/richard.zoom)\
**Post date:** [March 5, 2024, 3:31am UTC](https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630/4 "2024-03-05T03:31:56Z")

</div>

Hello Michael,

The SDK does not have a built-in ability to listen in to aspect ratio changes, so you will have to use UIKit’s [viewWillTransitionToSize:withTransitionCoordinator:](https://developer.apple.com/documentation/uikit/uicontentcontainer/1621466-viewwilltransition) directly.

Thank you for your patience,  
Richard

---

<div class="post-metadata">

**Author:** ![michaelpetersen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michaelpetersen/32/49650_2.png) [@michaelpetersen](https://devforum.zoom.us/u/michaelpetersen)\
**Post date:** [March 5, 2024, 6:29am UTC](https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630/5 "2024-03-05T06:29:30Z")

</div>

Hi @richard.zoom

Thank you for your reply.

Will this get called when another user for instance switches camera or rotates their device?

---

<div class="post-metadata">

**Author:** ![richard.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard.zoom/32/41061_2.png) [@richard.zoom](https://devforum.zoom.us/u/richard.zoom)\
**Post date:** [March 5, 2024, 11:46pm UTC](https://devforum.zoom.us/t/getting-aspect-ratio-updates-for-local-and-remote-user/104630/6 "2024-03-05T23:46:58Z")

</div>

Hello Michael,

Unfortunately, that delegate callback only applies to the local user. Also, we are unable to customize the call video background color.

Thank you for your patience,  
Richard
