Zoom Video SDK crops the video preview with sharedArrayBuffer enabled

Hello! After enabling ShareArrayBuffer, we observed that the preview video with blur appears cropped to a square size in Canvas. This issue reproduces randomly but occurs consistently almost every time.

Here’s the code snippet we use to start the video track:

     if (newBlurValue) {
        await videoTrack.start(videoCanvasRef, { imageUrl: 'blur' });
      } else {
        await videoTrack.start(videoRef);
      }

What We’re Seeing:

  • The preview video is cropped unexpectedly
  • This issue used to happen occasionally without ShareArrayBuffer, but now it is constant.

Expected Outcome: We need the preview video to display in an uncropped 16:9 resolution.

@zoom/videosdk 1.12.10, Chrome 130.0.6723.92 (Official Build) (arm64), MacOs

Could you please provide any insights or guidance on how to resolve this behavior? Also is the WebRTC implementation date known and can it help with that?

Thanks in advance!

2 Likes

I’m facing this issue too. But when a stop the camera and start again it load correctly, without cropping.

The crop only happens in the first camera load.

1 Like

I’m facing the same issue too. In our case, we’ve seen a pattern for this behaviour on the led camera indicator of our laptops. When starting video on a canvas, with our without a background effect, led indicator turns on when requested to startVideo, turns off for a fraction of a second and then turns on again. Here’s when 4:3 aspect ratio video is shown. When led turns on and doesn’t turn off, it works fine. For video element it works always good. Led inicator keeps on the entire process.

1 Like

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