diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-11-24 21:42:23 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-25 14:17:06 +0300 |
commit | 7a2f1feaf3dca895dbb957b951b8af399019a61b (patch) | |
tree | 59f264c791b728d0098a6835eadad5a8c2277fe6 | |
parent | 9e504eb408b019b027c810084e6ef51d4d212b1e (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.js | 4 |
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')) } } |