zhangzengfei
2021-09-24 afa4e7baaefb69438052503b82fdfd55621cfc91
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' })
}