3

When you have multiple web cameras.

You can select web camera on the chrome , setting -> contents -> media

But,I would like to select camera from script.

How can I select camera by Html5 or javascript?

whitebear
  • 8,922
  • 18
  • 81
  • 171

4 Answers4

4

Check this... It is huge code so I have not pasted it here.

This is camera API for DOM [Document Object Model]

Veer Shrivastav
  • 5,314
  • 11
  • 50
  • 83
0

You have everything you need here You'll have to use html5

Alkis Kalogeris
  • 15,894
  • 13
  • 56
  • 106
0

I think you are out of luck. At the moment there doesn't seem to be a way in HMTL5 to list and select audio/video devices available.

Petteri H
  • 11,271
  • 11
  • 63
  • 94
0

simply you cant select by script you can just turn on the default by getUsermedia api

Ashisha Nautiyal
  • 1,379
  • 2
  • 19
  • 39