From 84ad5590bafc58e17ebcf7ebdce2cd70c0c22ea9 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 24 九月 2021 18:54:56 +0800
Subject: [PATCH] 日期时间新版

---
 public/libs/wasmPlayer/turbo.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/public/libs/wasmPlayer/turbo.js b/public/libs/wasmPlayer/turbo.js
index 443331f..e4ce4b4 100644
--- a/public/libs/wasmPlayer/turbo.js
+++ b/public/libs/wasmPlayer/turbo.js
@@ -67,14 +67,23 @@
     })
   }, 'vii')
 
+  Notify = Module.addFunction(function(Type, Value) {
+    //type 1:鎾斁澶辫触 2:鏂囦欢鎾斁鍒版湯灏�
+    //console.log(Type+" "+Value);
+    if (Type == 1) self.postMessage({ command: 'play_failed' })
+    else if (Type == 2) self.postMessage({ command: 'play_end' })
+  }, 'vii')
+
   Module._Initialize(
     DeliverVideo,
     DeliverAudio,
     GetFileLength,
     ReadFile,
     CreateVideo,
-    CreateAudio
+    CreateAudio,
+    Notify
   )
+
   self.postMessage({ command: 'initialized' })
 }
 

--
Gitblit v1.8.0