|
@@ -84,14 +84,14 @@ export default {
|
|
window.__stream = null;
|
|
window.__stream = null;
|
|
this.openCamera();
|
|
this.openCamera();
|
|
|
|
|
|
- this.checkFaceDetectorTimeout = setTimeout(() => {
|
|
|
|
- this.nativeFaceDetectorStats();
|
|
|
|
- }, 60 * 1000);
|
|
|
|
|
|
+ // this.checkFaceDetectorTimeout = setTimeout(() => {
|
|
|
|
+ // this.nativeFaceDetectorStats();
|
|
|
|
+ // }, 60 * 1000);
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
clearTimeout(this.retrySnapTimeout);
|
|
clearTimeout(this.retrySnapTimeout);
|
|
clearTimeout(this.showSnapResultTimeout);
|
|
clearTimeout(this.showSnapResultTimeout);
|
|
- clearTimeout(this.checkFaceDetectorTimeout);
|
|
|
|
|
|
+ // clearTimeout(this.checkFaceDetectorTimeout);
|
|
window.__stream = null;
|
|
window.__stream = null;
|
|
if (this.$refs.video.srcObject) {
|
|
if (this.$refs.video.srcObject) {
|
|
this.$refs.video.srcObject.getTracks().forEach(function(track) {
|
|
this.$refs.video.srcObject.getTracks().forEach(function(track) {
|