# Preview aspect ratio in 640x360 resolution

**URL:** <https://community.wowza.com/t/preview-aspect-ratio-in-640x360-resolution/47731>\
**Category:** Wowza GoCoder SDK\
**Created:** [November 25, 2016, 4:52pm UTC](https://community.wowza.com/t/preview-aspect-ratio-in-640x360-resolution/47731 "2016-11-25T16:52:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moamen\_El-Tahwagi](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Moamen\_El-Tahwagi](https://community.wowza.com/u/Moamen_El-Tahwagi)\
**Post date:** [November 25, 2016, 4:52pm UTC](https://community.wowza.com/t/preview-aspect-ratio-in-640x360-resolution/47731/1 "2016-11-25T16:52:47Z")

</div>

Hi,

We are currently integrating the iOS GoCoder SDK in our app and while doing so we saw a bug, that is also available in the GoCoder app:

When you set the camera resolution to 720p or 1080p, the preview has the correct 16:9 aspect ratio and fills the entire screen on an iPhone.

If you change the resolution to 640x360, the preview shrinks to 3:2, even though this is a 16:9 resolution. The streamed video is a valid 16:9 video, so this is problem in the preview only.

Any chance, that this is fixed ?

Thanks,

Moamen

---

<div class="post-metadata">

**Author:** ![Moamen\_El-Tahwagi](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Moamen\_El-Tahwagi](https://community.wowza.com/u/Moamen_El-Tahwagi)\
**Post date:** [December 5, 2016, 12:14am UTC](https://community.wowza.com/t/preview-aspect-ratio-in-640x360-resolution/47731/2 "2016-12-05T00:14:41Z")

</div>

No one any idea ?

Am I the only one facing this issue ?

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [December 10, 2016, 6:39pm UTC](https://community.wowza.com/t/preview-aspect-ratio-in-640x360-resolution/47731/3 "2016-12-10T18:39:57Z")

</div>

Hello Moamen,

I noticed that you submitted a case to our support group and got a solution for this issue.

I would like to post the solution you got for anyone else who may run in to this question.

The solution was to use WZCamera’s **frameSizes** and **supportedPresetConfigs** properties to get the list of natively supported resolutions for the devices in question.

In the end setting the broadcastScaleMode to aspectFill and previewGravity to resizeApectFill to get the lower resolution preview to show up correctly.

Regards,

Alex
