Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

icy-streamer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icy-streamer

A dynamic icecast steam client manager.Stream client is ezstream.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • Icecast Server
  • Ezstream
  • Node.js (obviously)
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 !

FAQs

Package last updated on 30 Jun 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc