Issue with createLocalVideoTrack and start method not awaiting or returning properly when using virtual background in Zoom Video SDK

Video SDK Type and Version
JS v1.12.10

Description
I encountered an issue while using Zoom Video SDK, but this problem only occurs when using a virtual background. Here’s the code:

const localVideoTrack = ZoomVideo.createLocalVideoTrack();
await localVideoTrack.start(canvas, { imageUrl: 'blur' });

It seems that the start method is not awaiting or returning properly when a virtual background is applied, causing issues with ensuring the start process is complete before moving on to the next line of code. Has anyone else experienced this, or is there a recommended workaround to handle this scenario? Any help would be appreciated!

The following is part of the Video SDK’s internal code:

async start(e, t) {
  ...
    else {
      if (!(e instanceof HTMLCanvasElement))
        throw new Error("Cannot start video with virtual background");
      this.localPreview // <-- not awaiting or not returning
        .setup()
        .then(() =>
          this.localPreview.startPreview(e, { ...t, deviceId: this.deviceId })
        )
        .then(() => {
          this.vbPreviewInProgress = !0;
        });
    }
}

Hey @oganyan

Thanks for your feedback.

We will fix this issue in the upcoming release. (Around Nov 4th)

Thanks
Vic