Blank video getting rendered on toglling video

Hey @tommy ,

We are using single canvas to render all videos, but sometimes blank videos are getting rendered when we toggle video few times and we are getting following error messages in browser console after few seconds when this happens:

A VideoFrame was garbage collected without being closed. Applications should call close() on frames when done with them to prevent stalls.

Camera does gets started but rendered video is blank.

Browser Console Error
A VideoFrame was garbage collected without being closed. Applications should call close() on frames when done with them to prevent stalls.

Which Web Video SDK version?
1.2.3

Screenshots
Screenshot 2022-05-17 at 12.57.09 PM

Device:

  • Device: Macbook Pro
  • OS: macOS 11
  • Browser: Chrome
  • Browser Version: 101.0.4951.64 (Official Build) (x86_64)

Additional context
Its not happening always, but just wanted to share it with you because we’re not sure if its an issue in Zoom SDK or something from our side.

Hey @shoaib ,

If the startVideo() promise does not resolve before you toggle the video this error could be thrown.

Thanks,
Tommy

Okay, and currently we are checking bVideoOn property of users to call stream.renderVideo() as done in demo app here and then here, Is it the best practice you would recommend to render videos?

Because it seems like bVideoOn property get sets to true before even resolution of startVideo() promise, resulting in calling of stream.renderVideo() before completion of startVideo() promise, Can it cause any issues?

Hey @shoaib ,

For rendering other participant’s videos, the best “call back” is actually the event listener peer-video-state-change event listener.

-Tommy

1 Like

Okay, Thanks @tommy!

1 Like

Welcome! Let me know if you have any more questions! :slight_smile:

-Tommy

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