From 0d9ea2d6a84297139e7bfca3424e5b25999d1a4e Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期五, 24 九月 2021 18:38:27 +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