Skip to content

Commit 2182b47

Browse files
author
timmydoza
authored
Fix deviceId accessor in mediadevices example (#117)
1 parent a7f035a commit 2182b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mediadevices/src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function applyVideoInputDeviceSelection(deviceId, video, room) {
9595
function ensureMediaPermissions() {
9696
return navigator.mediaDevices.enumerateDevices().then(function(devices) {
9797
return devices.every(function(device) {
98-
return !(device.id && device.label);
98+
return !(device.deviceId && device.label);
9999
});
100100
}).then(function(shouldAskForMediaPermissions) {
101101
if (shouldAskForMediaPermissions) {

0 commit comments

Comments
 (0)