Skip to content

Commit

Permalink
Merge pull request #1679 from yhc002/patch-1
Browse files Browse the repository at this point in the history
don't use exact property for device ID
  • Loading branch information
fippo authored Sep 16, 2024
2 parents 34a6492 + aac4e72 commit 2b4f4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/getusermedia/resolution/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function getMedia(constraints) {

clearErrorMessage();
videoblock.style.display = 'none';
constraints.video.deviceId = {exact: videoSelect.value};
constraints.video.deviceId = {ideal: videoSelect.value};
console.log('getUserMedia constraints: ' + JSON.stringify(constraints));
navigator.mediaDevices.getUserMedia(constraints)
.then(gotStream)
Expand Down

0 comments on commit 2b4f4ed

Please sign in to comment.