Description
When upgrading from version 2.1.0 to version 2.2.0, we encountered the following issue after stopping the camera preview:
Previously, when stopping the video preview, the canvas would turn completely black.
Currently, after stopping the video preview, the canvas retains the last video frame —or in some cases, it turns completely red.
Which Web Video SDK version?
2.2.0
Video SDK Code Snippets
async startPreviewVideo(imageUrl) {
this.localVideoTrack = ZoomVideo.createLocalVideoTrack(deviceId);
if (imageUrl) {
await this.localVideoTrack.start(document.querySelector('#local-preview-video'), { imageUrl: imageUrl });
} else {
await this.localVideoTrack.start(document.querySelector('#local-preview-video'));
}
}
async stopPreviewVideo(unsubscribeLockScreen) {
if (this.localVideoTrack) {
await this.localVideoTrack.stop();
}
if (unsubscribeLockScreen) {
this.stopVideoTrack();
}
}
Screenshots
Previous (2.1.0):
Current (2.2.0):
Device (please complete the following information):
- OS: Mac 15.1
- Browser: Chrome
- Browser Version: 138