liyongli 2 ani în urmă
părinte
comite
2f93378def
1 a modificat fișierele cu 5 adăugiri și 2 ștergeri
  1. 5 2
      miniprogram/pages/faceRecognitionVK/index.ts

+ 5 - 2
miniprogram/pages/faceRecognitionVK/index.ts

@@ -54,7 +54,7 @@ Page({
             ctx.startRecord({
               timeout: daoJiShi, // 录制时长
               selfieMirror: false,
-              timeoutCallback: (res:any) => {
+              timeoutCallback: (res: any) => {
                 // 超出录制时长 关闭录屏
                 this.setData({
                   isStartVideo: false,
@@ -63,7 +63,10 @@ Page({
                 })
                 createVKSession?.stop();
                 listener?.stop();
-                this.getUrl(res);
+                let t = setTimeout(() => {
+                  this.getUrl(res);
+                  clearTimeout(t)
+                }, 2000);
               },
               success: () => {
                 // 调用成功,开始录制