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 flex-col w-full">
          <div id="antmedia-subscriber" class=""></div>

  </div>
  <script type="text/javascript">
  	var player = flowplayer("#antmedia-subscriber", {
    "antmedia": {
        "subscriberCode": "",
        "subscriberId": "",
        "token": ""
    },
    "live": true,
    "rtc": {
        "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"
    },
    "src": [
        {
            "publisher": false,
            "src": "C6Lx6ku6FEXgKtt",
            "type": "application/webrtc"
        }
    ],
    "token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw"
});
  </script>