Giter Club home page Giter Club logo

silentdisco's Introduction

silentdisco

Launch azuracast

In silentdisco root folder execute:

 ./docker.sh install

Log in to localhost:8080 and complete the configuration

Launch server

The azuracast stream is propagated to the network by a nodejs server; it reads the stream and broadcasts it to all connected websockets.

In silentdisco/server folder execute the command to build and run the application, specifying the environment variables

  • SERVER_IP: the ip address of the machine on the lan
  • STREAM_URL: the URL of the azuracast stream

An example of the launch script would be as follows:

 export SERVER_IP=192.168.1.46
 export STREAM_URL=http://192.168.1.46:8000/radio.mp3
 docker-compose up -d --build

In order to see the execution logs you may run the following command (where server_silentdisco_1 is the name of the container generated by the build):

 docker logs server_silentdisco_1

When everything is setup, the clients may connect to the server using a web browser

Performance note

The server relies on io.emit() in order to broadcast the stream as fast as possible with fixed packet size. In order to reduce the amount of exchanged data, a mono mixdown is performed. On client side the major bottleneck is represented by the time needed by AudioContext.decodeAudioData(), expecially on less modern devices. The delay needed to synchronize the streams is applied with amortization, otherwise would result in choppy playback: it takes around a minute to synchronize two devices having 500 ms of difference in latency

Credits

silentdisco is using the following third party software:

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.