st

stream-title

Retrieve song title from shoutcast and icecast server

Showing:

Popularity

Downloads/wk

43

GitHub Stars

7

Maintenance

Last Commit

3yrs ago

Contributors

0

Package

Dependencies

3

Size (min+gzip)

214.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

StreamTitle

Simple library to retrieve song title from SHOUTcast v1 or v2 and Icecast server.

Build Status Coverage Status

Installation

npm install stream-title --save

Example

SHOUTcast v1

var streamTitle = require('stream-title');

streamTitle({
    url: 'http://shoutcastserver:port',
    type: 'shoutcast'
}).then(function (title) {
    console.log(title);
}).catch(function (err) {
    console.log(err);
});

SHOUTcast v2

var streamTitle = require('stream-title');

streamTitle({
    url: 'http://shoutcastserver:port',
    type: 'shoutcast2',
    sid: 1
}).then(function (title) {
    console.log(title);
}).catch(function (err) {
    console.log(err);
});

Icecast v2.4.x

var streamTitle = require('stream-title');

streamTitle({
    url: 'http://icecastserver:port',
    type: 'icecast',
    mount: 'mymount'
}).then(function (title) {
    console.log(title);
}).catch(function (err) {
    console.log(err);
});

Options

NameTypeDescription
typestringrequired, server type that can be "shoutcast", "shoutcast2" or "icecast"
urlstringrequired, server url
sidintegerrequired for shoutcast2, stream id
mountstringrequired for incecast, mount name
timeoutintegerrequest timeout in ms, default: 1500

License

StreamTitle is open-sourced software licensed under the MIT license

Author

Fabio Ricali

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100