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">
          <div id="antmedia-subscriber" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = jwplayer("antmedia-subscriber").setup({
    "aspectratio": "16:9",
    "playbackRateControls": true,
    "plugins": {
        "../../js/webrtcsubscriber.js": {}
    },
    "sources": [
        {
            "appName": "webrtc",
            "file": "C6Lx6ku6FEXgKtt",
            "live": true,
            "type": "mp4"
        }
    ],
    "subscriber": {
        "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"
    },
    "width": "100%"
});
  </script>