Skip to content

Commit

Permalink
Fixed labels increment issues #58
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Dec 2, 2017
1 parent d2598d7 commit e9fe49e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions DetectRTC.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// Last Updated On: 2017-12-01 1:15:48 PM UTC
// Last Updated On: 2017-12-02 7:00:56 AM UTC

// ________________
// DetectRTC v1.3.6
Expand Down Expand Up @@ -739,11 +739,11 @@
device.isCustomLabel = true;

if (device.kind === 'videoinput') {
device.label = 'Camera ' + (DetectRTC.videoInputDevices.length);
device.label = 'Camera ' + (videoInputDevices.length + 1);
} else if (device.kind === 'audioinput') {
device.label = 'Microphone ' + (DetectRTC.audioInputDevices.length);
device.label = 'Microphone ' + (audioInputDevices.length + 1);
} else if (device.kind === 'audiooutput') {
device.label = 'Speaker ' + (DetectRTC.audioOutputDevices.length);
device.label = 'Speaker ' + (audioOutputDevices.length + 1);
} else {
device.label = 'Please invoke getUserMedia once.';
}
Expand Down
Loading

0 comments on commit e9fe49e

Please sign in to comment.