The code in this repository demonstrates how mp3s can be streamed between web browsers using WebAudio
and WebRTC
APIs.
A live demonstration is available at deno.dev.
To run the demo you need to have deno installed.
Install and run this demo by:
- Cloning the repository:
git clone https://github.com/eelcocramer/webrtc-mp3-stream.git
- Running the web server:
deno run --allow-net --allow-read main.ts
- Opening the demo in the browser: http://localhost:8080/index.html
Note that the web server only services the
HTML
andJavaScript
content and is involved by negotiating thewebRTC
connection. The audio streaming itself is done peer-to-peer directly between the browsers involved.
This module is available under a FreeBSD license, see the LICENSE file for details.