nodster
nodster copied to clipboard
Streaming
this is not really streaming as we need to download the whole mp3 into buffer.mp3
to then read it with html5 Audio.
A perfect solution would be to do:
var stream = require('stream');
var buffer = stream.Writable();
buffer.pipe(audio);
where audio would be a direct audio exit, there seems to be good node libraries for that:
- https://github.com/TooTallNate/node-speaker
- https://github.com/TooTallNate/node-lame
need to look into it.
maybe use player: https://www.npmjs.org/package/player