视频摄像头扫码优化

feat/task1-c-wallet
gongfuxiang 2023-03-03 20:37:36 +08:00
parent 9ab8251cda
commit 6024db62d3
1 changed files with 3 additions and 0 deletions

View File

@ -4726,7 +4726,10 @@ $(function()
// 初始最后一个摄像头
if(video_scan_selected_deviceid == null)
{
// 默认取最后一个摄像头
video_scan_selected_deviceid = videoInputDevices[videoInputDevices.length-1].deviceId;
// 画像翻转
$video_scan.addClass('picture-reverse');
}
// 大于一个则增加列表切换
if(videoInputDevices.length > 1)