mp3-stream-player

1.0.0 • Public • Published

mp3-stream-player

A mp3 steam player for web

How to use

const mp3Player = new Mp3Player({
    decoderWasm: 'url of lib/LameDecoder.wasm',
});

await mp3Player.initialize();  //  initialize and load wasm

mp3Player.feed(data);   // player will automatically handle playing sound

Package Sidebar

Install

npm i mp3-stream-player

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

212 kB

Total Files

5

Last publish

Collaborators

  • everywill