Skip to content

eelcocramer/webrtc-mp3-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream MP3s without uploading it to any server using HTML5 JavaScript APIs

The code in this repository demonstrates how mp3s can be streamed between web browsers using WebAudio and WebRTC APIs.

DEMO

A live demonstration is available at deno.dev.

REQUIREMENTS

To run the demo you need to have deno installed.

RUNNING THE DEMO YOURSELF

Install and run this demo by:

  1. Cloning the repository: git clone https://github.com/eelcocramer/webrtc-mp3-stream.git
  2. Running the web server: deno run --allow-net --allow-read main.ts
  3. Opening the demo in the browser: http://localhost:8080/index.html

Note that the web server only services the HTML and JavaScript content and is involved by negotiating the webRTC connection. The audio streaming itself is done peer-to-peer directly between the browsers involved.

LICENSE

This module is available under a FreeBSD license, see the LICENSE file for details.