Description
I’m using the Zoom Video SDK for iOS to implement a video call interface. My project is designed for portrait mode only, but I’m trying to enable landscape support. However, when the device rotates to landscape mode, the video canvas does not resize properly. Instead of filling the screen, it keeps the same dimensions as in portrait mode, leaving black bars on the sides.
I want the Zoom video canvas to fully adjust to the screen when rotating between portrait and landscape modes.
Which iOS Video SDK version?
Version: ‘2.1.0’
To Reproduce (If applicable)
Steps to reproduce the behavior:
- Start a Zoom Video SDK session.
- Display the primary video feed in a
UIView
. - Rotate the device to landscape mode.
- The video canvas does not adjust to the full screen.
Troubleshooting Routes
Checked device orientation settings in
UIDevice.current.orientation
.Attempted to manually update
UIView
frame usingUIScreen.main.bounds
.Used
CGAffineTransform(rotationAngle:)
to swap width and height (didn’t work).Tried enabling landscape mode in Info.plist and programmatically (still no solution).
Additional Context
Any help would be greatly appreciated. Thank you!