Wrong video aspect ratio after disabling and re-enabling video

Description
When the session starts it uses a video resolution of 640x480. After disabling and re-enabling the video stream, the video resolution changes to 640x360.

Which iOS Video SDK version?

  • 1.3.0 - 1.3.3 (all in between)

To Reproduce
Steps to reproduce the behavior:

  1. Join a session
  2. Disable users video
  3. Re-enable users video
  4. The video aspect ratio (resolution) has change

Screenshots
before & after:

Troubleshooting Routes
Here is a sample app that demostrates the issue: zoomaspect.zip

@rokgregoric
After disable and re-enable the user’s video, our stream resolution will gradually adapt to the best.
Btw, the resolution will changed as your network bend-witch changed.

resolution can change … but not the aspect ratio … this makes the video to change zoom if you fill the aspect ratio

@rokgregoric
Would you minder to tell us the detail of usage?
1.Are you using the rawdata or canvas?
2.how to subscribe the user’s video?

user.getVideoCanvas()?.subscribe(with: view, andAspectMode: .panAndScan)

great work .

Hi @rokgregoric ,
Can’t download your sample zip file. And the sample code paste is for pan and scan mode. That will not show the black line as your picture shown, will cut some video and show full screen.
Please confirm again.
Thanks

here is the sample using a different transfer service: WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free - hope that works for you.

Changing the aspect mode to pan and scan - DOESN’T fix the issue - when the aspect ratio / resolution changes the zoom of the video changes, and users can notice that: