Skip to content

erikzenkerLogmein/webrtc-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Little Demonstrator for webrtc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 70.2%
  • JavaScript 29.8%