Skip to content

Commit

Permalink
Different way of printing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhurey committed Jan 16, 2020
1 parent 4dea809 commit e619be2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/common.browser/MicAudioSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,17 @@ export class MicAudioSource implements IAudioSource {

// Enumerate the media devices.
navigator.mediaDevices.enumerateDevices().then((devices: MediaDeviceInfo[]) => {
// tslint:disable-next-line:no-console
console.log(`Devices:`);
// tslint:disable-next-line:no-console
console.log(devices);

for (const device of devices) {
if (device.deviceId === microphoneDeviceId) {
// Found the device
this.privMicrophoneLabel = device.label;
// break;
break;
}

// tslint:disable-next-line:no-console
console.info("Media device ID: " + device.deviceId + " Name " + device.label);
}
deferred.resolve(this.privMicrophoneLabel);
}, () => deferred.resolve(this.privMicrophoneLabel));
Expand Down

0 comments on commit e619be2

Please sign in to comment.