mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化员工录入人脸
This commit is contained in:
parent
70fcf1502e
commit
b1e89d0fa3
@ -105,6 +105,12 @@
|
||||
return;
|
||||
}
|
||||
},
|
||||
_addUserMedia: function () {
|
||||
return navigator.getUserMedia = navigator.getUserMedia ||
|
||||
navigator.webkitGetUserMedia ||
|
||||
navigator.mozGetUserMedia ||
|
||||
navigator.msGetUserMedia || null;
|
||||
},
|
||||
_initAddStaffMedia: function () {
|
||||
if (vc.component._addUserMedia()) {
|
||||
vc.component.addStaffViewInfo.videoPlaying = false;
|
||||
@ -132,7 +138,7 @@
|
||||
}
|
||||
},
|
||||
_takePhoto: function () {
|
||||
if (vc.component.addOwnerInfo.videoPlaying) {
|
||||
if (vc.component.addStaffViewInfo.videoPlaying) {
|
||||
var canvas = document.getElementById('canvas');
|
||||
var video = document.getElementById('staffPhoto');
|
||||
canvas.width = video.videoWidth;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user