Skip to content

Commit

Permalink
Update Modal.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-NaN authored Feb 12, 2023
1 parent 6dfea4d commit b5bb5a4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class CameraModal extends Modal {

switchCameraButton.onclick = async () => {
cameraIndex = (cameraIndex + 1) % cameras.length;
this.videoStream = null;
this.videoStream = await navigator.mediaDevices.getUserMedia({video: { deviceId: cameras[cameraIndex].deviceId }, audio: true});
videoEl.srcObject = this.videoStream;
videoEl.play();
Expand Down

0 comments on commit b5bb5a4

Please sign in to comment.