DOMException: Could not start video source - chrome 85 update

Viewed 5785

I had a working webrtc application which stops to work, today. Since there is no change on the code, and with new update of chrome, I thought this will experience by whole webrtc community, and it's worthy to ask here for a sulotion.
That's a typical usage of getUserMedia which tries to access the webcam and microphone:

let constraints = {
  audio: true,
  video: true
}
navigator.mediaDevices.getUserMedia(constraints)
.then(function (stream) {//something}
.catch(function (err) {//something}

when I try to access the mic and webcam as before, I NOW encounter to this error: (which is not meaningful to me)

DOMException: Could not start video source

Why cannot start video source? how to avoid (or fix) this problem?
Worth to mention this code is working fine until version 85 of chrome.
Thanks a lot for your kindness and help.

1 Answers

I don't know this can be accepted as an answer, but I wrote it in order to help someone else.
If you encounter to this problem, you may fix it by refreshing the browser.
1- open three dots on the top right corner.
2- click on settings.
3- search for "clean" on the top search bar.
4- find the clean up computer.
5- click on it.
After cleaning, my problem was gone.
Hope this helps.

Related