Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
icy-streamer
Advanced tools
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!
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.
});
Just simple stuff. Just be sure you have already installed ezstream and icecast.
$ npm install icy-streamer
MIT
Free Software <3 !
FAQs
A dynamic icecast steam client manager.Stream client is ezstream.
The npm package icy-streamer receives a total of 0 weekly downloads. As such, icy-streamer popularity was classified as not popular.
We found that icy-streamer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.