Black Screen Issue When Switching to .original Aspect Ratio (with and after Zoom SDK v2.1.10)

I’m encountering a black screen issue during a video call when changing the aspect ratio from .panAndScan to .originalusing the following method:

canvas.subscribe(with: videoView, aspectMode: .original, andResolution: ._Auto)

After this call, the video view turns black. However, if I toggle back from .original to .panAndScan, the video renders properly again. This aspect ratio switching flow had been working fine for over a year until now.

I also tried switching aspect ratios using the following method:

let error = remoteVideoCanvas.setAspectMode(.original, to: videoView)

But there was no visible change in the aspect ratio on the view.

As a workaround, I attempted the following steps:

  1. Unsubscribed from the view:
canvas.unSubscribe(with: videoView)
  1. Subscribed again with .original:
canvas.subscribe(with: videoView, aspectMode: .original, andResolution: ._Auto)

This resolves the black screen issue, but introduces a minor blinking effect due to the unsubscribe() being called first.

Could you please confirm if any changes related to aspect ratio handling were introduced in Zoom SDK version v2.1.10 that might be causing this behavior for .original aspect ratio?

CC: @richard.zoom

Hello Prashant,

Which version of the SDK were you on prior to 2.1.10? Checking on any changes made to aspect ratio logic prior to it.

Thank you for your patience,
Richard

I’ve reviewed our app’s version history and found that this was working fine up to version 2.1.0. I believe the issue started in version 2.1.5, and it was later reported by our QA in version 2.1.10.

1 Like