GithubHelp home page GithubHelp logo

mxjoly / audio-player-socket Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 72.23 MB

A audio player synchronized with socket.io.

License: MIT License

JavaScript 25.00% HTML 0.34% SCSS 16.34% TypeScript 58.23% Shell 0.09%
react nodejs express socket-io synchronization webpack typescript audio-player

audio-player-socket's Introduction

🎵 Audio Player Socket

This is a tools to synchronized audio tracks on different devices. This uses Socket.io to allow the clients to communicate in real-time.

Setup

  • ⚛ React 17
  • 📦 Webpack 5
  • 🔥 TypeScript 4
  • ✅ Express 4.x

Motivation

I teach music in a music school. During the confinement in November 2020 in the Paris region, I had to give my lessons by videoconference. The problem I have been having is with sharing music through Teams, Google Meet or Zoom software. These software provide sound sharing (with the browser or from the computer's sound device) but does not allow real synchronization between users. This media player was therefore created to facilitate the sharing of audio tracks, it is ideal for sharing music because the original sound of the shared files is maintained. Indeed, these files are loaded by the client's browser, and one of the users manages the synchronization.

Installation

Use npm install (or yarn install) to install the dependencies. Then cd into the project folder and tap npm start (or yarn start) to run the server.

Quick Start

yarn build && yarn start

How it works ?

At the home page, complete the form to create a new room. After submitting this form, your room is created and you could invite some people to it by sharing the link with the button at the bottom of the page. Notive that the person which has created the room is the only one that could synchronize his audio player with the guests. He has also a special url with the id of the room followed by a url parameter admin set to true. When creating a room, you upload some audio files, that will be saved to the server until the next monday throught this room.

The people who clicked on the shared link will be redirect to a form to choose a username. After that, they join the room. In the room, the current active users has displayed at the bottom with their usernames.

The guests could deactivate the synchronization by pressing on the sync button in the audio player. It will display "Synchronisation désactivée" after that.

Link to the web application

https://audio-player-socket.herokuapp.com/

Licence

MIT.

audio-player-socket's People

Contributors

mxjoly avatar

Stargazers

Niklas avatar  avatar Yuvraj Singh avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

abhishek-r-soni

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.