https://github.com/hoodie/webrtc-demo
Little Demonstrator for webrtc
https://github.com/hoodie/webrtc-demo
Last synced: 4 months ago
JSON representation
Little Demonstrator for webrtc
- Host: GitHub
- URL: https://github.com/hoodie/webrtc-demo
- Owner: hoodie
- Created: 2019-06-27T11:21:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-22T17:48:55.000Z (5 months ago)
- Last Synced: 2024-12-22T18:32:33.642Z (5 months ago)
- Language: Svelte
- Homepage: https://hoodie.de/webrtc-demo
- Size: 441 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebRTC Introduction
## 1. just play by youself
```
yarn dev
```https://localhost:8080/
follow the numbers
0. start stream(s)
1. 👈 create offer
2. 👈 setLocalDescription, sendOffer
3. 👉 setRemoteDescription, createAnswer
4. 👉 setLocalDescription, sendAnswer## 2. play over remote
```
yarn dev
yarn signaling
```open 👈
https://localhost:8080/?manual=false&remote=true&role=send&stream=bothopen 👉
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