Description
I attempted to remove the canvas and use the video-player nested within the video-player-container to display the virtual background preview, as outlined in the latest version of the ZoomVideoSDK documentation: Preview CameraChangelog(Version 2.1.0 - Zoom Developers). However, this approach failed and returned the following error:
Cannot start video with virtual background. Using the canvas still works as expected.
Additionally, I couldn’t find any updated implementation in the Zoom VideoSDK Web Sample. Is the new method not work yet, and does it still require the canvas to work properly?
Environment
Browser/client type and version: Chrome - Version 131.0.6778.205 (Official Build) (arm64)
OS version: MacOS 15.1
Regarding the Zoom VideoSDK Web Sample, I noticed that it still uses the canvas element to render the blurred background. However, according to the updated documentation, it seems that the video-player element should be used instead.
Please check the implementation at this reference: preview.tsx#L202.
@vic.yang
However, I am concerned about using the video-player element for rendering virtual backgrounds, as recommended in the latest documentation. It seems that this approach is not work at the moment. Could you confirm this?
Having the same issue with the virtual background. I attempted adding the { imageUrl: ‘blur’ } to the line suggested here in the sample app and it just throws “Cannot start video with virtual background”
yep this got my sample app working with the virtual background in the video-player component. In my app I needed to go one further and load the web assembly in and make a couple configuration changes in the vite config to get the blur working.