diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-06-08 19:01:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 19:01:37 +0300 |
commit | df0942146ae324212a18997b4f1844d2cb2d60ff (patch) | |
tree | c020a2ac55cc079bb785ba29a894f8ea6566793a | |
parent | 2b6d4610adc7e287695a42367e8885ed39d406ee (diff) | |
parent | 41e1961d2cf37b2d8a2fbcad07f89ded8975a874 (diff) |
Merge pull request #3780 from nextcloud/backport/3775/stable19
[stable19] Always try to use microphone if camera failed
-rw-r--r-- | src/utils/webrtc/simplewebrtc/localmedia.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/webrtc/simplewebrtc/localmedia.js b/src/utils/webrtc/simplewebrtc/localmedia.js index d0f76c46c..876c302f5 100644 --- a/src/utils/webrtc/simplewebrtc/localmedia.js +++ b/src/utils/webrtc/simplewebrtc/localmedia.js @@ -134,7 +134,7 @@ LocalMedia.prototype.start = function(mediaConstraints, cb) { }).catch(function(err) { // Fallback for users without a camera or with a camera that can not be // accessed. - if (self.config.audioFallback && (err.name === 'NotFoundError' || err.name === 'NotReadableError') && constraints.video !== false) { + if (self.config.audioFallback && constraints.video !== false) { constraints.video = false self.start(constraints, cb) return |