mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
filter the first non-virtual camera
This commit is contained in:
parent
e9ec22e66e
commit
4a31ac3e25
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,13 @@
|
|||
for (var i = 0; i < cameras.length; i++) {
|
||||
$("#sl_cameras").append("<option value='" + i + "'>" + cameras[i] + "</option");
|
||||
}
|
||||
// optional: select the first no "virtual" signed.
|
||||
for (var i = 0; i < cameras.length; i++) {
|
||||
if (cameras[i].toLowerCase().indexOf("virtual") == -1) {
|
||||
$("#sl_cameras option[value='" + i + "']").attr("selected", true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$("#sl_microphones").empty();
|
||||
for (var i = 0; i < microphones.length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue