0.4.2 • Published 3 years ago

@isfe/mse-player v0.4.2

Weekly downloads
7
License
ISC
Repository
github
Last release
3 years ago

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

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago