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.

how to handle "Requested device not found" exception?

See original GitHub issue

I’m trying to check whether camera available or not on component OnInit, if no device found have to show the warning message.

`ngOnInit() {

} displayCameras(cameras: object[]) { this.availableDevices = cameras; if (cameras && cameras.length > 0) { this.selectedDevice = cameras[0]; this.cameraStarted = true; } else { alert('Please Enable Camera / Camera not found '); } }`

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
odahcamcommented, Feb 9, 2018

Almost done!

image

0reactions
lock[bot]commented, Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DOMException: Requested device not found GetUserMedia
Try without "audio: true". Its help for my. (Microphone are not work). And check webcam on other sites.
Read more >
getUserMedia--DOMException: Requested device not found
My computer has no microphone,so I got an error from 'err'(DOMException: Requested device not found). how can I handle this error if I...
Read more >
Requested device not found - Unable to access Camera ...
I am using the video-quickstart-js project. When I enter a room name and click on Join Room button, I am not able to...
Read more >
Omegle Error with camera: Requested device not found
Note: If you don't see it under cameras, look under Imaging devices. Exit device manager then restart. Windows 10 should redetect it then ......
Read more >
How to Fix Camera Not Found Error on Omegle
Press Windows key + R to open up a Run dialog box. · Once you get to the Camera tab, scroll down to...
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