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' }) }