1.0.0 • Published 4 years ago

metadata-tream-parser v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

metadata-stream-parser

NodeJS module for parsing metadata from radio stream by url.

Features

  • Gets response from radio stream with metadata. Then pipes response to Transform stream for processing;
  • Stream is realized in Transform stream, and you can pipe radio station stream to another stream;
  • When metadata is received, metadata event triggers with metadata object;
  • After metadata is received, connection to radio station closes automatically;

Getting started

You can install metadata-stream-parser from npm.

npm install metadata-stream-parser

Get metadata from radio station.

const StreamParser = require('metadata-stream-parser');

const streamUrl = 'http://online.radioroks.ua/RadioROKS';
const radioStationStream = new StreamParser(streamUrl);

radioStationStream.on('metadata', metadata => console.log(metadata));