Giter Site home page Giter Site logo

titleturtle's Introduction

titleturtle

What is it?

Titleturtle -- special tool for parsing metadata from audio streams.

How it works?

Titleturtle reads tags like artist and title directly from an audio stream, which contains Icecast metadata.

Install

npm install   # or `yarn install`
cp config.js.example config.js

# change сonfig.js

npm start     # or `yarn start` or `node app`

Usage

let websocket = new WebSocket("ws://localhost:8080/ws");
    websocket.onopen = () => {
      websocket.send('HISTORY tumbach 5'); // request 5 last tracks <optional>
      websocket.send('SUB tumbach'); // subscribe to tag updates
    };
    websocket.onmessage = (e) => {
      try {
        let data = JSON.parse(e.data);
        console.log(data);
      } catch (e) {
        //
      }
    };
    window.onunload = () => websocket.close();

Known issues

  • Titleturtle is experiencing some issues during reconnections (see issue #1).
  • Titleturtle can not choose a stream by the lowest bitrate for now. This feature would save bandwidth.

titleturtle's People

Contributors

rngnrs avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

titleturtle's Issues

Track info stops being updated

Track info stops updating under some conditions:

  • titleturtle stops receiving the stream
  • server stops streaming
  • HTML pages are returned by Icecast/nginx (404/502/etc.)

It is necessary to implement listening to these events and restarting metadata parsing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.