Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-08-27 11:51:15 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2021-08-30 11:28:13 +0300
commit6642b2bc1d281e533e6c92b3c1e60939c40dccd1 (patch)
treeea965dca9fd33b1577735f943ed16e2fa7736e39 /src
parent84834e63847f16995e6a11c175ed33b952384f73 (diff)
Add some logging to the device selection
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r--src/utils/webrtc/MediaDevicesManager.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/webrtc/MediaDevicesManager.js b/src/utils/webrtc/MediaDevicesManager.js
index a231900e1..e9d6b8a13 100644
--- a/src/utils/webrtc/MediaDevicesManager.js
+++ b/src/utils/webrtc/MediaDevicesManager.js
@@ -228,9 +228,17 @@ MediaDevicesManager.prototype = {
// Fallback in case we didn't find the previously picked device
if (this.attributes.audioInputId === undefined) {
+ if (BrowserStorage.getItem('audioInputId')) {
+ // Couldn't find device by id
+ console.debug('Could not find previous audio device, falling back to default/first device in the list', BrowserStorage.getItem('audioInputId'), this.attributes.devices)
+ }
this.attributes.audioInputId = this._fallbackAudioInputId
}
if (this.attributes.videoInputId === undefined) {
+ if (BrowserStorage.getItem('videoInputId')) {
+ // Couldn't find device by id, try the label
+ console.debug('Could not find previous video device, falling back to default/first device in the list', BrowserStorage.getItem('videoInputId'), this.attributes.devices)
+ }
this.attributes.videoInputId = this._fallbackVideoInputId
}