Video SDK Type and Version
@zoom/videosdk 2.1.5
Description
When trying to switch camera device on mobile, it shows “Could not start video source”. Then the video element turns to black and stops working.
Error?
“Could not start video source”
How To Reproduce
Can provide small sample project in a zip file if necessary. The error happens in this function where the selectedCamera is the deviceId.
attachLocalVideoTrack() {
if (!this.selectedCamera) return;
const promise = this.lvt.isVideoStarted ? this.lvt.stop() : Promise.resolve();
promise
.then(() => this.lvt.switchCamera(this.selectedCamera))
.then(() => this.lvt.start(this.$refs.videoRef))
.catch(alert);
},