ZoomSDKNormalVideoElement displays no video in some cases

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: 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

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!

Hi @jon.lieblich

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. Here is 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?