JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q20818F
  • License ISC

Package Exports

  • @isfe/mse-player

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@isfe/mse-player) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MSEPlayer

A player use MediaSource, by @hxli8 @bqliu.

Solves

  • pcm to wav
  • use MediaSource to play multiple pcm/wav/mp3 files(concat) etc

Notice

Some utilities like strToBlob and wavToMp3 are exported for convenience. But notice that if you want to use wavToMp3, you need to import lamejs in global environment. And use your bundler, e.g. rollup, you need to use rollup-plugin-external-globals and use it in your configuration.

// simple rollup config
const config = {
  plugins: [nodeResolve(), commonjs(), rollupTypescript(), externalGlobals({ lamejs: 'lamejs' })]
}

For webpack, you may use externals. For umd, do it as you like.

Refs