视频摄像头扫码优化

feat/task1-c-wallet
gongfuxiang 2023-03-03 20:39:56 +08:00
parent 6024db62d3
commit 6d40d1b174
1 changed files with 5 additions and 2 deletions

View File

@ -4728,8 +4728,11 @@ $(function()
{
// 默认取最后一个摄像头
video_scan_selected_deviceid = videoInputDevices[videoInputDevices.length-1].deviceId;
// 画像翻转
$video_scan.addClass('picture-reverse');
// PC模式下默认画像翻转
if(parseInt(__is_mobile__) != 1)
{
$video_scan.addClass('picture-reverse');
}
}
// 大于一个则增加列表切换
if(videoInputDevices.length > 1)