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?
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?
Check this... It is huge code so I have not pasted it here.
This is camera API for DOM [Document Object Model]
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.
simply you cant select by script you can just turn on the default by getUsermedia api