Skip to content

Commit

Permalink
Fixed #38
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Mar 11, 2017
1 parent fe1e316 commit 95cc4ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions DetectRTC.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Last time updated: 2017-03-11 6:22:53 AM UTC
// Last time updated: 2017-03-11 6:31:40 AM UTC

// Latest file can be found here: https://cdn.webrtc-experiment.com/DetectRTC.js

Expand Down Expand Up @@ -719,7 +719,7 @@
} catch (e) {}
}

if (alreadyUsedDevices[device.deviceId]) {
if (alreadyUsedDevices[device.deviceId + device.label]) {
return;
}

Expand Down Expand Up @@ -784,7 +784,7 @@
// there is no 'videoouput' in the spec.
MediaDevices.push(device);

alreadyUsedDevices[device.deviceId] = device;
alreadyUsedDevices[device.deviceId + device.label] = device;
});

if (typeof DetectRTC !== 'undefined') {
Expand Down
Loading

0 comments on commit 95cc4ce

Please sign in to comment.