Millicast WebRTC Subscriber

WebRTC Subscriber configured for Millicast.

Note: A working live example to demonstrate live WebRTC publishing and subscribe features.

WebRTC Subscriber configuration for Millicast. The account ID is required to be configured. A static list of Ice servers is also required.

OBS RTMP Encoder to WebRTC subscribing is supported if Browser based WebRTC publishing is not desired. See the Millicast Encoder Settings documentation for setting up the encoder.

{
  "rtcsubscriber": {
      "millicast": {
        "accountId": "",
        "subToken": ""
      },
      "iceServers": [
        {
          "urls": [
            "stun:stun.l.google.com:19302",
            "stun:stun1.l.google.com:19302",
            "stun:stun2.l.google.com:19302",
            "stun:stun3.l.google.com:19302",
            "stun:stun4.l.google.com:19302"
          ]
        }
      ]
    }
}
    <div class="max-w-screen-2xl h-auto my-auto">
      <video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="millicast-subscriber"></video>
  </div>
  <script type="text/javascript">
  	var player = videojs("millicast-subscriber", {
    "live": true,
    "plugins": {
        "rtcsubscriber": {
            "iceServers": [
                {
                    "urls": [
                        "stun:stun.l.google.com:19302",
                        "stun:stun1.l.google.com:19302",
                        "stun:stun2.l.google.com:19302",
                        "stun:stun3.l.google.com:19302",
                        "stun:stun4.l.google.com:19302"
                    ]
                }
            ],
            "millicast": {
                "accountId": "huaHNT",
                "subToken": "b23ebffd67a92feff751983ad91c4ddfd83285b5a3b899cffbab1d28275dce44"
            },
            "server": "millicast"
        }
    },
    "sources": [
        {
            "src": "C6Lx6ku6FEXgKtt",
            "type": "application/webrtc"
        }
    ]
});
  </script>