1.2.0 • Published 5 years ago

icy-streamer v1.2.0

Weekly downloads
34
License
ISC
Repository
github
Last release
5 years ago

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(); // Ok let's start the stream!
  setTimeout(function(){
    if(liveStream.Stream.running){ // You can check using this property.
      liveStream.addSong("/home/songs/anothercoolsong.mp3"); // Added another song you can stop if you want using liveStream.killStream() or it will end itself anyway.
    }
  },2000); // After 2 second let us add another song. Of course you will call this somewhere else. Just be sure stream did not end.
  
});

Also there is an example as example.js

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 !

1.2.0

5 years ago

1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago