icy-streamer
icy-streamer is a nodejs controller for the famous icecast source client known as ezstream.
Using icy-streamer you can add new songs to your currently playing stream. So you can dynamically change your next music to play.
Just wrap this around a express REST API and you have a REST API controlled icecast live stream.
The reason this module created was to be able to create a live internet radio controlled by the LISTENERS!
Requirements
Some Examples and Notes // Work in Progress
var streamConfig = {
url: "http://localhost:8000/stream",
sourceuser: "source",
format: "MP3",
sourcepassword: "hackme",
};
var liveStream = require('icy-streamer')(streamConfig);
liveStream.addSong("/home/songs/coolsong.mp3",function(){
console.log("Added new song yaya!");
liveStream.startStream();
setTimeout(function(){
if(liveStream.Stream.running){
liveStream.addSong("/home/songs/anothercoolsong.mp3");
}
},2000);
});
Installation
Just simple stuff.
Just be sure you have already installed ezstream and icecast.
$ npm install icy-streamer
Todos
- Examples and Notes
- Tests
- Detailed Documentation
- Some features that i forgot right now but probably will remember soon.
License
MIT
Free Software <3 !