ZZJ
2021-09-24 0d9ea2d6a84297139e7bfca3424e5b25999d1a4e
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' })
}