/WebRTCBroadCast

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

Primary LanguageJavaScript

WebRTCBroadCast

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
  • Config

    • set your host & port
      • host & port
        • public/config.js
        • server.js
          const host = "localhost";
          const port = "3000"
        
  • Start server

    • node server or nodemon server
  • Run.

  • Monitoring WebRTC Status on browser

    • chrome://webrtc-internals/
  • Stunt Servers

    • "stun:stun.l.google.com:19302"
    • "stun:stun.stunprotocol.org"

References