simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.65k stars 1.19k forks source link

How to change those radio button(first picture) into dropdown list(second picture) when the device is plugin into your pc or laptop? #770

Open Soo1030 opened 1 year ago

Soo1030 commented 1 year ago

Hope everyone is well all day.

c (1) This picture is an HTML page that I have created. Now I want to change those radio buttons into a dropdown list like the picture below. In this dropdown list, when an external camera plugin into your pc/laptop, how to let it auto-show the device name and device ID? s Because with code in this webpage below it can function well and I need to do something like this. Can anyone give me some advice or correction? Thank you all for your help. https://codepen.io/chrisbeast/pen/ebYwpX These are codes for my webpage: capture.zip