# ZoomSDKNormalVideoElement displays no video in some cases

**URL:** <https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029>\
**Category:** macOS\
**Created:** [February 23, 2021, 8:12am UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029 "2021-02-23T08:12:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuriy.belozerov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuriy.belozerov/32/23505_2.png) [@yuriy.belozerov](https://devforum.zoom.us/u/yuriy.belozerov)\
**Post date:** [February 23, 2021, 8:12am UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/1 "2021-02-23T08:12:32Z")

</div>

**Description**  
Hi all.

I’m developing a macOS application using Zoom SDK which shows participants from the meeting in the custom UI similar to the Grid View which is implemented in the native Zoom app.  
I’m using ZoomSDKNormalVideoElement objects to build my grid and in most of cases it works well.  
But rarely some of this video elements show nothing though they always created and resized correctly without any error. But when this issue happens ZoomSDKVideoContainerDelegate’s method [onCustomVideoSubscribeFail:error:](https://marketplacefront.zoom.us/sdk/meeting/macos/protocol_zoom_s_d_k_video_container_delegate_01-p.html#a72da39696a000e7f3e37a9dc15a6febb) returns an error with code 6.

So I have two questions and hope you could help me:

1. What does this error code mean and how it should be processed?
2. Is there any workaround which I could use in this case (e.g. reinstantiate failed video element or try resizing it or something else)?

**Which Client macOS SDK version?**  
5.4.54528.1230

**To Reproduce(If applicable)**  
Unfortunately I can’t provide steps to reproduce but I noticed that this issue happens more often when my applications connects to the meeting with a lot of participants (15+). Also I would like to add that this issue happens when my app connects to the meeting just after it has been started.

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

- Device: Apple iMac (Retina 5K, 27-inch, Late 2015)
- OS: macOS Big Sur 11.2.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:** [February 23, 2021, 9:24pm UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/2 "2021-02-23T21:24:20Z")

</div>

Hi @yuriy.belozerov, thanks for using the dev forum.

Sorry to hear you’re running into this issue intermittently when subscribing to user videos. Are you certain that the error code is 6 and not 5? Additionally, can you please provide some additional context on how you are setting up the user video (i.e. is it all being done simultaneously when joining a meeting or is it over a short period of time as many users join)?

Lastly, if you could provide the logs (the file will be encrypted) so we can further investigate this, that would be great.

Thanks!

---

<div class="post-metadata">

**Author:** ![yuriy.belozerov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuriy.belozerov/32/23505_2.png) [@yuriy.belozerov](https://devforum.zoom.us/u/yuriy.belozerov)\
**Post date:** [February 25, 2021, 8:45am UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/3 "2021-02-25T08:45:35Z")

</div>

Hi @jon.zoom

> Are you certain that the error code is 6 and not 5?

Yes I’m pretty sure that this function is called with error code 6. There are some of my logs:

> video element for participant 16796672 has been created with status: Success  
> video element for participant 16796672 has been resized with status: Success  
> video view for participant 16796672 has been added to container  
> video element for participant 16796672 has been resized with status: Success  
> video element with user id 16796672 failed custom video subscribe with error: 6

> Additionally, can you please provide some additional context on how you are setting up the user video (i.e. is it all being done simultaneously when joining a meeting or is it over a short period of time as many users join)?

Sure I will share this logic with you. My application joins to a meeting with some participants as an anonymous user. After successful joining it obtains a list of all users from the SDK and simultaneously (through the cycle) creates video elements for them. And some of these elements may be “empty” i.e. display no video.

> Lastly, if you could provide the logs (the file will be encrypted) so we can further investigate this, that would be great.

Sure I can but just to be clear, should this logs be generated somehow from my application? What should they contain in this case? Or there is a way to collect some logs provided by Zoom SDK?

---

<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:** [February 25, 2021, 6:49pm UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/4 "2021-02-25T18:49:14Z")

</div>

Hi @yuriy.belozerov,

Thanks for confirming the error code. The logs should be visible under `~/Library/Logs/${APPLICATION_NAME}`.

Thanks!

---

<div class="post-metadata">

**Author:** ![yuriy.belozerov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuriy.belozerov/32/23505_2.png) [@yuriy.belozerov](https://devforum.zoom.us/u/yuriy.belozerov)\
**Post date:** [February 26, 2021, 6:38am UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/5 "2021-02-26T06:38:37Z")

</div>

Hi @jon.zoom

Thanks for your advice. I have the SDK logs that were collected on the day this issue happened. Couldn’t attach file directly so please download them from Google drive:

> **[zoom\_memlog\_17051360-0BDD-49F6-9E6D-58CE2B5FD65E\_26AD8713-17A8-401B-A29D-68E3EE6...](https://drive.google.com/file/d/1WZI0my1ZOVQkVlmbdL48wXzQaXbT67tD/view)**
>
> Google Drive file.

---

<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:** [February 26, 2021, 6:37pm UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/6 "2021-02-26T18:37:33Z")

</div>

Hi @yuriy.belozerov,

Thanks for providing the logs. We will investigate and let you know as soon as we have an update.

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 1, 2021, 5:30pm UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/7 "2021-03-01T17:30:37Z")

</div>

Hi @yuriy.belozerov,

After investigating, we have determined that this is being caused by exceeding the bandwidth limit of concurrent streams. We are working on adding an error code for this in a future release.

Thanks!

---

<div class="post-metadata">

**Author:** ![andrew.sosna](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/andrew.sosna/32/19365_2.png) [@andrew.sosna](https://devforum.zoom.us/u/andrew.sosna)\
**Post date:** [March 1, 2021, 6:57pm UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/8 "2021-03-01T18:57:44Z")

</div>

Hi @jon.zoom. I’m working with Yuriy, so I’d like to ask some follow-up questions:  
Thank you for the answer, having a proper error code would be convenient, but is there anything we can do to avoid this error, maybe there is a way to increase the allowed bandwidth for our application?  
Is there a way to see our current bandwidth and detect that we should not create video elements or perform other actions?  
And what should we do if we did receive this error, what are the steps we should perform to restore the normal flow and be able to create video elements?

Thank you,  
Andrew Sosna.

---

<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 2, 2021, 12:02am UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/9 "2021-03-02T00:02:23Z")

</div>

Hi @andrew.sosna, great to meet you!

> is there anything we can do to avoid this error, maybe there is a way to increase the allowed bandwidth for our application?

Unfortunately this is enforced by the back end and cannot be changed by the SDK.

> Is there a way to see our current bandwidth and detect that we should not create video elements or perform other actions?  
> And what should we do if we did receive this error, what are the steps we should perform to restore the normal flow and be able to create video elements?

This limit only exists for simultaneous streams, so you can only add additional users after calling [`cleanVideoElement`](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_video_container.html#a9fd3efcc39d1ea274c9db746adda62c8).

Thanks!

---

<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:** [April 1, 2021, 10:02am UTC](https://devforum.zoom.us/t/zoomsdknormalvideoelement-displays-no-video-in-some-cases/44029/10 "2021-04-01T10:02:27Z")

</div>

Closed on April 1, 2021, 10:02am UTC

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