# Wrong video aspect ratio after disabling and re-enabling video

**URL:** <https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590>\
**Category:** iOS\
**Created:** [August 21, 2022, 4:47am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590 "2022-08-21T04:47:06Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [August 21, 2022, 4:47am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/1 "2022-08-21T04:47:06Z")

</div>

**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:  
[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/8/080d6218fcd440aeef24f8bc5209555944764a6e.png) ](https://dl.dropboxusercontent.com/s/565tkhkur53qnxu/zoomaspect-before-after.png?dl=0)

**Troubleshooting Routes**  
Here is a sample app that demostrates the issue: [zoomaspect.zip](https://www.dropbox.com/s/csu1opdpww4f9ns/zoomaspect.zip?dl=1)

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 8, 2022, 9:58am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/2 "2022-09-08T09:58:10Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 8, 2022, 10:01am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/3 "2022-09-08T10:01:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 8, 2022, 10:13am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/4 "2022-09-08T10:13:45Z")

</div>

@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?

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 8, 2022, 10:25am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/5 "2022-09-08T10:25:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bb2024613](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bb2024613/32/41201_2.png) [@bb2024613](https://devforum.zoom.us/u/bb2024613)\
**Post date:** [September 8, 2022, 5:54pm UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/6 "2022-09-08T17:54:03Z")

</div>

great work [.](https://alightmotion.org/alight-motion-for-ios-and-mac/)

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 13, 2022, 8:50am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/7 "2022-09-13T08:50:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 14, 2022, 3:31am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/8 "2022-09-14T03:31:38Z")

</div>

here is the sample using a different transfer service: [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-w1dpB8sfRe) - 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:

[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/a/4a3b7e3d083207277e11638e706df34800f4a249.png) ](https://dl.dropboxusercontent.com/s/q36kn7e2a15d7fx/Screenshot%202022-09-14%20at%205.28.52%20AM.png?dl=1)

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [October 6, 2022, 12:30pm UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/9 "2022-10-06T12:30:08Z")

</div>

Still not fixed in v1.5.0

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [October 6, 2022, 12:46pm UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/10 "2022-10-06T12:46:22Z")

</div>

@jackie.chen This happens only when using an `externalVideoSourceDelegate` and  
`session.sessionPreset = .vga640x480`

When setting the preset to:  
`session.sessionPreset = .hd1280x720`  
the aspect ratio is correct.

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [October 8, 2022, 3:03am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/11 "2022-10-08T03:03:42Z")

</div>

Hi @rokgregoric ,  
Thanks for your important information. Will push our team to handle this issue.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [October 9, 2022, 5:15am UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/12 "2022-10-09T05:15:17Z")

</div>

@jackie.chen please check [Black video using v1.5.0 + externalVideoSourceDelegate](https://devforum.zoom.us/t/black-video-using-v1-5-0-externalvideosourcedelegate/77034). The two issues are related.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 8, 2022, 3:16pm UTC](https://devforum.zoom.us/t/wrong-video-aspect-ratio-after-disabling-and-re-enabling-video/74590/13 "2022-11-08T15:16:10Z")

</div>

Closed on November 8, 2022, 3:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
