We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 215033e + 5977d20 commit 13b6b16Copy full SHA for 13b6b16
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