Getting aspect ratio updates for local and remote user

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.

Hey @michaelpetersen ,

Have you taken a look at the aspect ratio docs?

Android: ZoomVideoSDKVideoAspect (Zoom.us SDK API Document)

iOS: iOS Video SDK API Reference: ZoomVideoSDKVideoCanvas Class Reference

Best,
Tommy

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 : )

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: directly.

Thank you for your patience,
Richard

1 Like

Hi @richard.zoom

Thank you for your reply.

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

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