Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iyadassaf/icecast-source
Connect and stream to Icecast servers
https://github.com/iyadassaf/icecast-source
Last synced: about 1 month ago
JSON representation
Connect and stream to Icecast servers
- Host: GitHub
- URL: https://github.com/iyadassaf/icecast-source
- Owner: IyadAssaf
- License: mit
- Created: 2014-10-05T23:14:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-06T11:15:30.000Z (over 10 years ago)
- Last Synced: 2024-04-16T00:02:45.537Z (9 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.
```javascript
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)
- host (defaults to 'localhost')
- type (defaults to 'audio/mpeg')
- name
- description
- url
- genre
- bitrate
- private
- public
- audio-info