Ant Media WebRTC Subscriber

WebRTC Subscriber configured for Ant Media Server.

  "sources": [
    { "type": "application/webrtc", "src": "C6Lx6ku6FEXgKtt"}
  ]
}

WebRTC Subscriber configuration for Ant Media Server. Ant Media Server License is required to play back WebRTC. A trial license will work to play back WebRTC. The default WebRTC app for Ant Media Server is WebRTCAppEE.

Note: Not a live demo, server configuration is just for example.

Configured is stream token security if configured in the server using a JWT token.

    <div class="flex w-full h-auto my-auto">
      <video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="antmedia-subscriber"></video>
  </div>
  <script type="text/javascript">
  	var player = videojs("antmedia-subscriber", {
    "plugins": {
        "rtcsubscriber": {
            "antmedia": {
                "apiToken": "",
                "subscriberCode": "",
                "subscriberId": "",
                "token": ""
            },
            "applicationName": "WebRTCAppEE",
            "channelName": "data",
            "dataChannel": true,
            "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"
                    ]
                }
            ],
            "server": "antmedia",
            "serverURL": "rtc.electroteque.org:5443"
        }
    },
    "sources": [
        {
            "src": "C6Lx6ku6FEXgKtt",
            "type": "application/webrtc"
        }
    ]
});
  </script>