question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mediaDevices.enumerateDevices and mediaDevices.getUserMedia take up to 60 seconds to complete sometimes

See original GitHub issue

Mostly it’s working just fine without any problems but from time to time the mediaDevices methods take up to 60 seconds until they return something. What’s surprising is that it only happens with the mediaDevices methods. The rest of the code works flawlessly without any issues. The problem is that I don’t get any error messages because there is no error. It just takes very long for them to complete. I’m not sure if the bug originates from the library itself or if it’s located somewhere in my code. I’d appreciate any ideas or hints!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
linus-komnickcommented, Dec 6, 2021

That’s a good point! I’ll post an update on this next week with the logs. I’m supposed to work on a different project this week…

0reactions
saghulcommented, Mar 10, 2022

No follow-up, closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MediaDevices.enumerateDevices() - Web APIs | MDN
The MediaDevices method enumerateDevices() requests a list of the available media input and output devices, such as microphones, cameras, ...
Read more >
getUserMedia resolutions III - constraints unleashed
How to specify and find WebRTC camera resolutions in Chrome, Firefox, and Edge using the getUserMedia API and its constraints with a dataset ......
Read more >
Is there any reason why no error found in calling navigator ...
Accessing camera list by navigator.mediaDevices.enumerateDevices() is ok but accessing these device by their specific id using navigator.
Read more >
Safari Technology Preview Release Notes - Apple Developer
Fixed an issue where browser.tabs sometimes returned an incorrect URL for pinned tabs. Bug Fixes. Fixed the Share Menu when sharing an image...
Read more >
AudioCodes WebRTC examples - Call
In this document we demonstrate how to use the API to write WebRTC client phones. ... Sometime opening the JavaScript console is difficult...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found