From 10727876994cffcd1fc74af114223740fc8825b6 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期一, 13 十二月 2021 10:44:23 +0800
Subject: [PATCH] Merge branch 'bhomebus' of http://192.168.5.5:10010/r/web/vue-smart-ai into bhomebus
---
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