eelcocramer / webrtc-mp3-stream

Stream mp3s without uploading to any servers using HTML5 APIs

Home Page:https://webrtc-mp3-stream.deno.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Stream mp3s without uploading to any servers using HTML5 APIs

https://webrtc-mp3-stream.deno.dev

License:Other


Languages

Language:HTML 65.4%Language:TypeScript 13.8%Language:JavaScript 10.7%Language:CSS 10.2%