icecast-source

0.1.0 • Public • Published

icecast-source

Simple abstraction to connect and stream data to Icecast servers as an source client.

Installation

npm install icecast-source

Usage

Pass your port, password and mountpojnt to the module, recieve a callback when authorized.

var source = require('icecast-source')({
    port: 9000,
    pass: 'yourPass',
    mount: '/superCoolStuff'
}, function (err) {
 
    // if err, auth has failed
    if(err) console.log(err);
 
    // if not, stream your data to icecast
    while(true) {
        source.write('some data');
    }
});

Options

You can set the following options in the config:

  • port (required)
  • pass (required)
  • mount (required)
  • name
  • description
  • url
  • genre
  • bitrate
  • private
  • public
  • audio-info

Readme

Keywords

none

Package Sidebar

Install

npm i icecast-source

Weekly Downloads

4

Version

0.1.0

License

MIT

Last publish

Collaborators

  • iyadassaf