# How to get full screen preview in iOS application by using zoom video SDK

**URL:** <https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039>\
**Category:** iOS\
**Created:** [December 30, 2021, 8:32am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039 "2021-12-30T08:32:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [December 30, 2021, 8:32am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/1 "2021-12-30T08:32:07Z")

</div>

**Description**  
I am using zoom video sdk , I am facing issue regarding the full screen preview.Can you please tell what should i do to get the full screen preview ?

I am setting aspect ratio like below  
usersVideoCanvas.subscribe(with: onView, andAspectMode: .panAndScan)

**Which iOS Video SDK version?**  
ZoomVideoSDK v1.1.1 (8661.0812)

[https://ibb.co/9cJDQ5W](https://ibb.co/9cJDQ5W)

**Smartphone (please complete the following information):**

- Device:iPhone 7
- OS: 13.5.1

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 30, 2021, 8:05pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/2 "2021-12-30T20:05:53Z")

</div>

Hi @qazi,

When you are talking about the appearance of your UI with the Video SDK, it is entirely defined within your application. This means that you have complete control over the behavior and appearance of all of the UI end-to-end. For that reason, the Video SDK is not able to control how the `UIView` passed into your canvas appears. It can only render video on the provided view when calling the `subscribe` method.

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 3, 2022, 5:24am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/3 "2022-01-03T05:24:01Z")

</div>

Here my concern is about render view dimensions.

onUserVideoStatusChanged (iOS) i get video dimensions as width 640 , height 360 , fps 0 & bps 0.

Although in android it is height 64970 width 51312.

If I get the higher resolution in iOS it will appear in fullscreen as well.

Can you please tell me how I should get the higher resolution in iOS??

Why on android it is getting this much higher video dimensions?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 3, 2022, 9:43pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/4 "2022-01-03T21:43:12Z")

</div>

Hi @qazi,

The resolution you are claiming to receive on Android is far beyond the capabilities of any consumer-grade Android device, and the bounds of the resolution our SDK (or any video product) could reasonably deliver. Can you please provide a code snippet showing how you are checking the width/height of the video? Also, is there any difference on Android if you update to v1.1.2?

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 4, 2022, 10:42am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/5 "2022-01-04T10:42:57Z")

</div>

Kindly arrange a technical team session to get it done instead of back and forth tickets. We want to wrap it up as soon as possible to go live with ZOOM video sdk.

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 5, 2022, 11:03am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/6 "2022-01-05T11:03:03Z")

</div>

Any update regarding above ? It will be quick if we can have a session with your technical team.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 6, 2022, 7:59pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/7 "2022-01-06T19:59:41Z")

</div>

Hi @qazi,

Can you please provide the information I requested in my previous reply so that we can assess further?

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 6, 2022, 8:29pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/8 "2022-01-06T20:29:19Z")

</div>

Although android is working as expected and they are getting fullscreen preview of the remote video([https://ibb.co/hK4bkdv](https://ibb.co/hK4bkdv)).

Our concern is iOS which is getting low resolution and not covered full screen

**Code Reference iOS**

**func** onUserVideoStatusChanged( **\_** helper: ZoomVideoSDKVideoHelper!, user userArray: [ZoomVideoSDKUser]!) {

print(“onUserVideoStatusChanged”)

// UserArray contains the users that had a video status change.

// Use helper to perform actions on a user.

**if**  **let** userArray = userArray {

**for** user **in** userArray {

// Use .videoStatus.on to check if a user’s video is on or off.

print("user ", user.getName()!)

print(“onUserVideoStatusChanged:”)

print(user.getVideoStatisticInfo()?.width)

print(user.getVideoStatisticInfo()?.height)

print(user.getVideoStatisticInfo()?.fps)

print(user.getVideoStatisticInfo()?.bps)

}

}

}

**Values From Above logs**  
Width = 640  
Height = 360  
Fps = 0  
Bps = 0

Here are the screenshot  
For Android : [https://ibb.co/hK4bkdv](https://ibb.co/hK4bkdv)  
For iOS : [https://ibb.co/58ydb7j](https://ibb.co/58ydb7j)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 7, 2022, 10:35pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/9 "2022-01-07T22:35:29Z")

</div>

Hi @qazi,

The code you have provided is the iOS implementation, which seems to be returning rational values. Can you please provide the code from your Android implementation? The values you are comparing (64970 & 51312) to are not a valid resolution that the SDK is capable of delivering. To ensure that the Android SDK is actually delivering a different resolution than iOS, we still need to get information about how you are getting these values on Android. Once we have enough context around your Android implementation, we can revisit the iOS side to compare it.

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 8, 2022, 7:54am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/10 "2022-01-08T07:54:44Z")

</div>

Here are the logs from android using v1.1.2

**#logUser** : User :::  
user ID: 33555456,  
userName: 1429,  
muted: true,  
audioType: ZoomVideoSDKAudioType\_None,  
host: false  
video: false,  
video FPS: 1878856248,  
video HxW: 64970 x 51520,  
video bpf: -701906611

**Code Reference**

fun logUser(user: ZoomVideoSDKUser) {  
Timber.e(  
“User ::: \n” +  
“user ID: ${user.userID}, \n” +  
“userName: ${user.userName}, \n” +  
“muted: ${user.audioStatus.isMuted},\n” +  
“audioType: ${user.audioStatus.audioType},\n” +  
“host: ${user.isHost}\n” +  
“video: ${user.videoStatus.isOn},\n” +  
“video FPS: ${user.videoStatisticInfo.fps}, \n” +  
“video HxW: ${user.videoStatisticInfo.height} x ${user.videoStatisticInfo.width}, \n” +  
“video bpf: ${user.videoStatisticInfo.bpf}”  
)  
}

Please wrap it up quicker.We need to go live soon with android - iOS and web app and all are using Zoom Video SDK.  
We can have a technical session to debug with your team.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 10, 2022, 9:59pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/11 "2022-01-10T21:59:31Z")

</div>

Hi @qazi,

Thanks for the additional information. There is very clearly something wrong in the QoS metrics you are seeing in the Android SDK. Based on my testing, the SDK returns valid values so it isn’t yet clear why you are seeing this. Can you please provide the Android SDK logs so that we can investigate this further? You can obtain them from your device under `sdcard/Android/data/${PACKAGE_NAME}/logs`, where a `last_log_file_id.txt` file will tell you the postfix of the most recent log file. The log file we are looking for will be encrypted. Once you have this ready, please send it over via a ticket on our [developer support site](https://zoomdevelopersupport.zendesk.com/hc/en-us) and reference this thread so it gets correctly routed.

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 11, 2022, 8:04am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/12 "2022-01-11T08:04:29Z")

</div>

[Logs](https://drive.google.com/drive/folders/1j4QVVe0sbMObCxvDw1tFc9nmQnohfqVf?usp=sharing)

Here are the required files.  
Can we have a technical session with your team to close the above issue.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 12, 2022, 12:32am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/13 "2022-01-12T00:32:53Z")

</div>

Hi @qazi,

Thank you for providing the logs. We will look into this and let you know as soon as we have an update. At this time, scheduling a meeting would not be an effective use of anyone’s time, as we still need to investigate this issue further. If anything changes on that front, I will be sure to let you know. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 13, 2022, 7:27pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/14 "2022-01-13T19:27:24Z")

</div>

Hi @qazi,

After investigating the logs provided, there unfortunately is not enough information present to determine why you are seeing invalid QoS data on Android. We are going to improve our logging in this area in the next release so that we can better debug this issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 14, 2022, 6:54am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/15 "2022-01-14T06:54:20Z")

</div>

Thanks for your updates regarding android. Kindly let us know once you release a version for improving logging.

But please try to understand our first priority issue which is related to iOS SDK.

How to get full screen preview in iOS application by using zoom video SDK

We have tried all aspect ratios (Original,Full\_Filled, LetterBox & PanAndScan) of video provided by zoom but were unable to get the desired result.

Our developer on the web end using Zoom JS SDK is sending the video height width but Height and Width is not reflecting at iOS or Android side.  
Here is the link he is using to sending video constraint  
[https://marketplacefront.zoom.us/sdk/custom/web/interfaces/capturevideooption.html](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/capturevideooption.html)

Looking forward to hear from you

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 18, 2022, 9:02pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/16 "2022-01-18T21:02:23Z")

</div>

Hi @qazi,

I will need to follow up on which release this will be included in and get back to you.

Regarding the video resolution, I would not expect the aspect ratio to have any effect on the underlying resolution of the video the SDK is able to receive. These only change whether or not the video view will have black bars and/or cropping in order to fit the allocated space as described [here](https://marketplace.zoom.us/docs/sdk/video/ios/essential/render-video#create-video-canvas).

> Our developer on the web end using Zoom JS SDK is sending the video height width but Height and Width is not reflecting at iOS or Android side.

Thanks for clarifying that the video dimensions are being manually set on the web side when you’ve tested this. Can you please confirm what values are being used here?

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 19, 2022, 2:05am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/17 "2022-01-19T02:05:29Z")

</div>

Hi @qazi,

Just a quick follow-up on the timeline for the improved logging. We have a release coming this month, but will not be able to include this change. This will be included in the following release.

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 19, 2022, 7:19am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/18 "2022-01-19T07:19:35Z")

</div>

If aspect ratio will not solve then I am curious what can I do to get full screen vision ?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 21, 2022, 11:10pm UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/19 "2022-01-21T23:10:36Z")

</div>

Hi @qazi,

The primary difference in the screenshots you’ve provided appears to be the resolution sent from the device, rather than how you are trying to display the video. If this is not the case, we will need to wait until we are able to obtain accurate QoS data on both Android and iOS for comparison.

Thanks!

---

<div class="post-metadata">

**Author:** ![qazi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qazi/32/33666_2.png) [@qazi](https://devforum.zoom.us/u/qazi)\
**Post date:** [January 31, 2022, 8:07am UTC](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039/20 "2022-01-31T08:07:36Z")

</div>

Do you need anything from us for the above issue ?

[Next page](https://devforum.zoom.us/t/how-to-get-full-screen-preview-in-ios-application-by-using-zoom-video-sdk/62039.md?page=2)
