A minimal setup for transmitting / receiving video signal using WebRTC.
v10.14
or highernpm i
npm start
# open these urls in your browser
open http://localhost:3000/camera.html
open http://localhost:3000/screen.html
npm i
npm start
# in a separate terminal / tab
ngrok http 3000
# open on different devices
open https://${NGROK_URL}/camera.html
open https://${NGROK_URL}/screen.html
Server
Camera page /camera.html
Screen page /screen.html
This project is basically a copy of webrtc-video-broadcast by Basscord. Differences from the original:
RTCPeerConnection.ontrack
instead of deprecated
RTCPeerConnection.onaddstrea