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
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-11-24 21:42:23 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-11-25 14:17:06 +0300
commit7a2f1feaf3dca895dbb957b951b8af399019a61b (patch)
tree59f264c791b728d0098a6835eadad5a8c2277fe6
parent9e504eb408b019b027c810084e6ef51d4d212b1e (diff)
Fix pending device not requested once current request finishes
The changed device id handler expects the MediaDevicesManager and the device id, but only the device id was given. As the method was recursively called from the handler of the previous "getUserMedia" promise trying to access "getUserMedia()" on a string failed silently; the error was caught by the rejected promise handler and the output track was stopped and removed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--src/utils/media/pipeline/MediaDevicesSource.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/media/pipeline/MediaDevicesSource.js b/src/utils/media/pipeline/MediaDevicesSource.js
index 94457bc65..685b156d6 100644
--- a/src/utils/media/pipeline/MediaDevicesSource.js
+++ b/src/utils/media/pipeline/MediaDevicesSource.js
@@ -218,7 +218,7 @@ export default class MediaDevicesSource extends TrackSource {
this._pendingAudioInputIdChangedCount = 0
if (audioInputIdChangedAgain) {
- this._handleAudioInputIdChanged(mediaDevicesManager.get('audioInputId'))
+ this._handleAudioInputIdChanged(mediaDevicesManager, mediaDevicesManager.get('audioInputId'))
}
}
@@ -281,7 +281,7 @@ export default class MediaDevicesSource extends TrackSource {
this._pendingVideoInputIdChangedCount = 0
if (videoInputIdChangedAgain) {
- this._handleVideoInputIdChanged(mediaDevicesManager.get('videoInputId'))
+ this._handleVideoInputIdChanged(mediaDevicesManager, mediaDevicesManager.get('videoInputId'))
}
}