We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7068fb6 commit 7515b8aCopy full SHA for 7515b8a
src/content/getusermedia/resolution/js/main.js
@@ -236,7 +236,7 @@ function getMedia(constraints) {
236
237
clearErrorMessage();
238
videoblock.style.display = 'none';
239
- constraints.video.deviceId = {ideal: videoSelect.value};
+ constraints.video.deviceId = {exact: videoSelect.value};
240
console.log('getUserMedia constraints: ' + JSON.stringify(constraints));
241
navigator.mediaDevices.getUserMedia(constraints)
242
.then(gotStream)
0 commit comments