hoodie / webrtc-demo

Little Demonstrator for webrtc

Home Page:https://hoodie.de/webrtc-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebRTC Introduction

1. just play by youself

yarn dev

https://localhost:8080/

follow the numbers

  1. start stream(s)
  2. πŸ‘ˆ create offer
  3. πŸ‘ˆ setLocalDescription, sendOffer
  4. πŸ‘‰ setRemoteDescription, createAnswer
  5. πŸ‘‰ setLocalDescription, sendAnswer

2. play over remote

yarn dev
yarn signaling

open πŸ‘ˆ https://localhost:8080/?manual=false&remote=true&role=send&stream=both

open πŸ‘‰ https://localhost:8080/?manual=false&remote=true&role=recv&stream=both

?remote=true = use signaling server ?role=send = show only πŸ‘ˆ ?role=recv = show only πŸ‘‰

Config

You can configure evreything via queryString as described aboth or open the Config panel at the top, but all it does is set the queryStrings.

feature possible values description
remote true , false use signaling server over webSocket
role send , recv , both show πŸ‘ˆ, πŸ‘‰ or πŸ‘ˆ πŸ‘‰
manual true , false allow modifying the SDPs
semantic plan-b , unified-plan configure peerconnection

About

Little Demonstrator for webrtc

https://hoodie.de/webrtc-demo


Languages

Language:Svelte 77.9%Language:TypeScript 17.6%Language:JavaScript 4.5%