Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  43] [ 5]  / answers: 1 / hits: 19848  / 11 Years ago, thu, september 19, 2013, 12:00:00

I want to display a list of video cameras attached to the user's computer, and when they select one, display streaming video from that camera in an HTML5 <video> tag.



How can I get a list of the video cameras attached to the user's computer?


More From » html

 Answers
4

Perhaps Navigator.getUserMedia() (uses WebRTC under the hood) is what you're looking for, though I don't see anything that will directly tell you what devices are available (the list of devices isn't exposed to your code—it's presented to the user when asking for permission to access available hardware).



Also note the browser support: Chrome 21+, Firefox 20+, Opera 12+, no support for IE and possibly Safari.


[#75593] Wednesday, September 18, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suzanne

Total Points: 425
Total Questions: 87
Total Answers: 109

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
;