Simple live streaming web application. you can streaming and watch as consumer. This Web App using WebRTC for media real-time communication, and Socket.io for signaling, also SFU architecture which features the following data transmission processes between the media server and the endpoints (client).
-
Features
- Multiple Streaming
- Watch a Streaming
-
WebRTC (SFU architecture)
-
Clone this repo.
- npm update
-
Secure ip local
- for custom ip local (server.js host) other than localhost, then you have to set your local ip (http) as (https). because WebRTC won't work if ip is not secure (http).
to secure local ip. open this link on your chrome
- chrome://flags/#unsafely-treat-insecure-origin-as-secure
- and paste your ip address
- for custom ip local (server.js host) other than localhost, then you have to set your local ip (http) as (https). because WebRTC won't work if ip is not secure (http).
to secure local ip. open this link on your chrome
-
Config
- set your host & port
- host & port
- public/config.js
- server.js
const host = "localhost"; const port = "3000"
- host & port
- set your host & port
-
Start server
- node server or nodemon server
-
Run.
- for broadcaster
- for viewers
-
Monitoring WebRTC Status on browser
- chrome://webrtc-internals/
-
Stunt Servers
- "stun:stun.l.google.com:19302"
- "stun:stun.stunprotocol.org"
-
Code.
-
Issues
-
Videos
-
Articles
- https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/connectionState
- https://testrtc.com/find-webrtc-active-connection/
- https://www.kadekjayak.web.id/stun-turn-server/
- https://testrtc.com/webrtc-api-trace/
- https://stackoverflow.com/questions/42836729/how-to-fix-unreliable-webrtc-calling
- https://www.w3.org/2011/04/webrtc/wiki/images/archive/d/de/20151029000646%21RtpTransceivers_at_TPAC_2015.pdf
- https://blog.mozilla.org/webrtc/rtcrtptransceiver-explored/
-
Mediasoup ref ( not implemented yet )
-
Socket Stream ( not Implemented yet )
- https://github.com/vincentdieltiens/WebSocketFileTransfer
- https://stackoverflow.com/questions/56051454/mediastream-pipe-to-nodejs-socket-io-stream-to-google-speech-api-and-stream-back
- https://stackoverflow.com/questions/50976084/how-do-i-stream-live-audio-from-the-browser-to-google-cloud-speech-via-socket-io/50976085#50976085