Sync HTML5 audio

Synchronize audio across computers using HTML5 (<audio> and WebSockets)

이용 기술 자바스크립트, HTML5, CSS3, 오디오, 웹 소켓,

  • 조회수 172회

현재 데모에 대한 개발자 댓글

This demo allows to hear synchronized music across (modern) browsers. The client side is written in HTML, CSS and Javascript, using socket.io/WebSockets and the audio tag. The server side is written in NodeJS and using socket.io.

The server groups together computers coming from the same IP address, and allows them to play music on a given URL synchronized. If one plays, all of them will play. The same goes for pause, volume changes, and position changes.

It is open source and at Github, so instead of relying on a third-party server you can download it and install it at home. Possible applications include hearing music more loudly (especially on mobile phones).

Note: the demo contains an iframe to a host due to mozilla.org using always https:// and WebSockets requiring an also https-enabled connection which the NodeJS host doesn't provide.

Finally, special thanks to alejandromg@freenode, whose help made possible the use of socket.io.

About this Demo

소스 다운로드 0.63 KB · ZIP 파일

Browse the Source

현재 데모는 GPL 라이센스 하에 공개되고 있습니다.

더 많은 정보 보기 JoanC