# Inquery about ZoomVideoSDKVideoAspect，video cannot be filled to full screen

**URL:** <https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422>\
**Category:** Android\
**Created:** [March 8, 2022, 9:52am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422 "2022-03-08T09:52:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 8, 2022, 9:52am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/1 "2022-03-08T09:52:51Z")

</div>

**Description**  
when status is in session，the remote video cannot be displayed in full screen .  
the sample of version 1.2.1 also has this problem.

**Which Android Video SDK version?**  
version 1.2.1

**To Reproduce(If applicable)**  
When we upgrade the sdk version to 1.2.1, there are still black areas on both sides of the video in ZoomVideoSDKVideoAspect\_PanAndScan mode~  
We have tried all Aspect types and the problem still exists。

**Screenshots**

 ![pic](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/9/392ded7b3552dc880f7cf813ddf85c1b486e295c.jpeg)

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

- Device: [TV]
- OS: [Android 9]

**Additional context**  
Please help to confirm this question~ 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:** [March 10, 2022, 2:37am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/2 "2022-03-10T02:37:34Z")

</div>

Hi @Benedict,

Based on the screenshot, it looks like you’re using the LetterBox aspect mode. The sample app uses that for the active speaker by default. If you change it to PanAndScan in `MeetingActivity`, it will correctly fill the whole view.

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 10, 2022, 3:05am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/3 "2022-03-10T03:05:05Z")

</div>

Dear Jon.lieblich  
I have confirmed many times~ the problem still exists after I changed to PanAndScan in MeetingActivity, Code as attached.

 ![sdk_sc](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/f/1f26df92caaa0b1ca20bdff2884a1a304aca4de6.png)

Please help to double check ,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:** [March 10, 2022, 8:40pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/4 "2022-03-10T20:40:00Z")

</div>

Hi @Benedict,

It’s pretty strange that we’re both seeing different results with seemingly the same implementation. Let’s try to narrow down where the difference lies by getting some additional information.

- Which device make/model are you running the sample app on in the screenshot?
- Which device make/model is sending the video you are showing?
- A diff containing the changes you’ve made to the SDK sample app (be sure to exclude any developer credentials or other private info before creating the diff)

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 11, 2022, 10:52am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/5 "2022-03-11T10:52:12Z")

</div>

Hi @jon.zoom  
This should not be related to the running equipment，Is it possible that we got a different sample app？  
I compared my sample app project code with the original downloaded， there are three modifications.

1. the screenshot of the last comment, modify LetterBox&Original to PanAndScan

2. add role\_type when create token, the screenshot is as follows  

3. add sdk key/secret

---

<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:** [March 11, 2022, 9:23pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/6 "2022-03-11T21:23:49Z")

</div>

Hi @Benedict,

> This should not be related to the running equipment

It probably isn’t, but we need to rule out as many variables as possible so this information will be important. Different devices’ cameras may have different resolutions, so it is possible that things like the resolution of the video or the screen of the device can be the key difference.

> Is it possible that we got a different sample app?

As long as you are using the sample app from the Marketplace, we should be using the same app. I’ve tried testing on v1.2.0 and 1.2.1, both with the same results.

Just to be 100% sure, can you please provide a diff after modifying a fresh copy of the sample app? Screenshots are useful, but in this scenario we need to be as explicit as possible in each detail to determine why this is not reproducible on our end.

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 14, 2022, 2:04am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/7 "2022-03-14T02:04:05Z")

</div>

Hi @jon.zoom  
My device is DTEN ME~, I’ ve tried testing on v1.1.1 before , That is OK, but v1.2.1 has the problem, so I think that’s not be related to device.

How do I upload my sample code（or diff files） for you to analyze? It seems to be able to upload pictures only

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:** [March 14, 2022, 11:59pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/8 "2022-03-14T23:59:03Z")

</div>

Hi @Benedict,

Thanks for confirming the device you’re using. You can post the diff file directly as text, since the forum does limit which types of files you are able to upload.

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 16, 2022, 2:23am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/9 "2022-03-16T02:23:12Z")

</div>

Hi @jon.zoom  
The diff file I generated is pasted below，please help to confirm ASAP，Thanks

```auto
diff --git a/build.gradle b/build.gradle
index 98a098c..bec859e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -15,13 +15,19 @@ buildscript {
 
 allprojects {
     repositories {
+ maven { url 'https://jitpack.io' }
+ maven { url 'https://maven.aliyun.com/repository/public' }
+ maven { url 'https://maven.aliyun.com/repository/central' }
+ maven { url 'https://maven.aliyun.com/repository/google' }
+ maven { url 'https://maven.aliyun.com/repository/public' }
+ maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
         jcenter()
- maven {
+ /*maven {
             url 'https://maven.google.com/'
             name 'Google'
         }
         maven {
             url "https://jitpack.io"
- }
+ }*/
     }
 }
diff --git a/sample/src/main/java/us/zoom/sdksample/MeetingActivity.java b/sample/src/main/java/us/zoom/sdksample/MeetingActivity.java
index 12cc594..1417eef 100644
--- a/sample/src/main/java/us/zoom/sdksample/MeetingActivity.java
+++ b/sample/src/main/java/us/zoom/sdksample/MeetingActivity.java
@@ -258,9 +258,9 @@ public class MeetingActivity extends BaseMeetingActivity {
 
     protected void subscribeVideoByUser(ZoomVideoSDKUser user) {
         if (renderType == RENDER_TYPE_ZOOMRENDERER) {
- ZoomVideoSDKVideoAspect aspect = ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_LetterBox;
+ ZoomVideoSDKVideoAspect aspect = ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_PanAndScan;
             if (ZoomVideoSDK.getInstance().isInSession()) {
- aspect = ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_Original;
+ aspect = ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_PanAndScan;
             }
             if (null != currentShareUser) {
                 currentShareUser.getShareCanvas().unSubscribe(zoomCanvas);
diff --git a/sample/src/main/java/us/zoom/sdksample/util/JWTUtil.java b/sample/src/main/java/us/zoom/sdksample/util/JWTUtil.java
index 48a0775..a1bd8b3 100644
--- a/sample/src/main/java/us/zoom/sdksample/util/JWTUtil.java
+++ b/sample/src/main/java/us/zoom/sdksample/util/JWTUtil.java
@@ -26,9 +26,9 @@ public class JWTUtil {
 
     final static long EXPIRED_TIME = 3600 * 4;
 
- private static final String apiKey = "";
+ private static final String apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
 
- private static final String apiSecret = "";
+ private static final String apiSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
     //for sdk user to bind zoom id with app userId.
     public static String customIdentity="test_"+ Build.MODEL;
 
@@ -53,6 +53,7 @@ public class JWTUtil {
         try {
             payLoadObject.put("app_key", apiKey);
             payLoadObject.put("version", version);
+ payLoadObject.put("role_type", 1);
             payLoadObject.put("iat", iat);
             payLoadObject.put("exp", exp);
             payLoadObject.put("user_identity",customIdentity);

```

---

<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:** [March 16, 2022, 10:08pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/10 "2022-03-16T22:08:37Z")

</div>

Hi @Benedict,

Thanks for providing that. This confirms that we are both making the same changes. I think we’ll need the SDK logs to investigate further. Can you please provide those? Instructions on how to obtain them can be found [here](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization#log-feature) (instructions are for the Meeting SDK, but they’re the same for the Video SDK).

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 17, 2022, 2:44am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/11 "2022-03-17T02:44:56Z")

</div>

Hello @jon.zoom  
Now let’s confirm again  
If our sample app and the modifications are exactly the same, then the appearance should not be inconsistent。and I will describe the phenomenon on my side again to make sure we have not misunderstood。  
SAMPLE APP, the default display after two devices are connected is still the local camera stream（not peer’s），the display in this scenario is OK。when the screen is switched to show remote side, that will be not right（not PanAndScan mode）。  
Is this not the case on your side?

Thanks~

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 17, 2022, 2:50am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/12 "2022-03-17T02:50:17Z")

</div>

Hi @jon.zoom  
It seems sample app has enabled sdk logs default

```auto
protected void initSDK() {
        ZoomVideoSDKInitParams params = new ZoomVideoSDKInitParams();
        params.domain = Constants.WEB_DOMAIN;
        **params.enableLog = true;**...............

```

but I can not find the log file inside data/xxx

---

<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:** [March 17, 2022, 10:47pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/13 "2022-03-17T22:47:37Z")

</div>

Hi @Benedict,

When I change the user with the changes in your diff made to the `subscribeVideoByUser`, I am seeing the correct aspect ratio. I only see a difference if I change `aspect = ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_PanAndScan;` back to `aspect = ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_Original;`.

> but I can not find the log file inside data/xxx

Apologies, but this is not the correct path. Our documentation mentions it is inside `Android/data/(your app's name)/logs`, not under the root data folder. For example, on my device the full path for the sample project is `sdcard/Android/data/us.zoom.VideoSDKPlayground/logs`.

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 18, 2022, 2:59am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/14 "2022-03-18T02:59:01Z")

</div>

Hi @jon.zoom  
I get the logs，but they are encrypted and there is no way to upload files here, so how do I send to you~

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:** [March 18, 2022, 6:50pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/15 "2022-03-18T18:50:52Z")

</div>

Hi @Benedict,

You can either upload them to a file hosting service such as Google Drive, or submit them through a ticket on our [developer support site](https://zoomdevelopersupport.zendesk.com/hc/en-us). If you choose the latter option, be sure to mention me and this thread so the ticket is correctly routed. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 20, 2022, 2:21am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/16 "2022-03-20T02:21:24Z")

</div>

Hi @jon.zoom

FYI [ZoomVideoSDK\_3.zip - Google Drive](https://drive.google.com/file/d/1vsCA8-Jd2LtLY-A4r6ttHsHrtzIg-r53/view?usp=sharing)

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:** [March 21, 2022, 9:34pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/17 "2022-03-21T21:34:27Z")

</div>

Hi @Benedict,

Thanks for providing the logs. Based on what I’m seeing in there, the aspect mode is only being set to PanAndScan (which is what we expected based on your diff). We’ll need to investigate further to see what exactly is going on here. I’ll let you know as soon as we have any updates.

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:** [March 22, 2022, 7:28pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/18 "2022-03-22T19:28:49Z")

</div>

Hi @Benedict,

Would you be able to provide SDK logs after setting the aspect ratio to `Full_Filled` for comparison’s sake as we continue to investigate?

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 23, 2022, 2:57am UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/19 "2022-03-23T02:57:12Z")

</div>

Hi @jon.zoom

OK, I will send to you later

And, would you please send me a copy of your Sample app code that works fine on your side?

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:** [March 24, 2022, 9:00pm UTC](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422/20 "2022-03-24T21:00:10Z")

</div>

Hi @Benedict,

Based on the diff you provided earlier, our implementations were identical. We are still working on figuring out why you’re seeing different behavior, as we have had several people test and have not yet been able to reproduce the issue you are seeing. Once you can provide those logs using `Full_Filled`, we may get some additional insight into what exactly is going wrong.

Thanks!

[Next page](https://devforum.zoom.us/t/inquery-about-zoomvideosdkvideoaspect-video-cannot-be-filled-to-full-screen/65422.md?page=2)
