Virtual background image adds ~1.4s to startVideo() time vs. blur

Problem

We use the Zoom Web SDK. We call stream.startVideo({ hd: true, virtualBackground: { imageUrl } }).

When imageUrl is 'blur', the call takes about 2.3-2.4s.

When imageUrl is a real image, the call takes about 3.7-3.9s.

The extra time is about 1.4s. This happens on every call.

Evidence

We measured this in production. Tried with switching from blur to a picture background. Camera start time went from 2.37s to 3.76s on the same day. No app release happened at that time.

Our question

Does a real image take a different internal path than 'blur'? Does the SDK fetch, decode, or initialize the image on every startVideo() call? Is there a way to pre-load or cache the image, so this cost happens once per session, not once per call?

Environment

  • Zoom Web SDK: 2.4.0
  • Browser: Chrome 150
  • API call: stream.startVideo({ hd: true, virtualBackground: { imageUrl } })
  • imageURL: it is in-house url, not third party or anything else.

Let me know if any further details are needed. Or if there is anything that we can try to make the experience faster.

I would try two checks before changing your implementation. First, use Chrome DevTools Network to see whether each startVideo() call triggers another image request and whether that request is served from cache. Second, prefetch the image once, create a reusable Blob Object URL, and compare startup times against the original URL. Zoom’s CaptureVideoOption interface explicitly supports HTTP URLs, base64 images, and Object URLs. If the Object URL reduces the delay, image retrieval may be contributing. If the delay remains, that points toward processing or SDK initialization rather than network transfer.

Thanks Amanda,

We will check and let you know if this would help us narrow down the problem.

Thank You!

Hey @Niki_Jeavio

Thanks for your feedback.

@amanda-recallai‘s explanation is very accurate.

The main delay comes from fetching the image content, which requires a network request.

In addition, compared with blur, when an image is used we also perform an image size check (this may be related to whether the cropped option is set). However, that check takes very little time, within a few tens of milliseconds.

Thanks
Vic