Ant Media WebRTC Group Call

WebRTC Conferencing for Ant Media Server. Second participant.

Room Viewer

Note: Not a live demo, server configuration is just for example. For live working example try the Millicast Publisher and Subscriber example.

WebRTC Conferencing 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.

Ant Media default WebSocket signalling server supports room group calls by default.

The config roomName is required to connect to a specific room.

    <div class="max-w-screen-2xl h-auto my-auto">
          <div id="antmedia-conference-2" class="has-settings"></div>
  </div>
  <script type="text/javascript">
  	var player = jwplayer("antmedia-conference-2", {
    "aspectratio": "16:9",
    "playbackRateControls": true,
    "plugins": {
        "../../js/webrtcpeakmeter-8.20.0.js": {},
        "../../js/webrtcpublisher-8.20.0.js": {
            "applicationName": "WebRTCAppEE",
            "autoStartDevice": true,
            "channelName": "data",
            "conferenceContainer": "#conference-container",
            "dataChannel": true,
            "floatedControls": 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"
                    ]
                }
            ],
            "publisher": true,
            "roomName": "room1",
            "server": "antmedia-conference",
            "serverURL": "antmedia.electroteque.org:5443",
            "settings": true,
            "toggleScreen": true
        }
    },
    "sources": [
        {
            "appName": "webrtc",
            "file": "djq574AA8FHQUEFD",
            "live": true,
            "publisher": true,
            "type": "mp4"
        }
    ],
    "width": "100%"
});

player.on("ready", function() {
player.on("selectedParticipant", (participant) => {
console.log("selected participant", participant);
}).on("unselectedParticipant", (e, participant) => {
console.log("unselected participant", participant);
}).on("participantleft", (sender) => {
}).on("participantfeatured", (sender) => {
}).on("participantunfeatured", (sender) => {
}).on("leaveroom", e => {
}).on("roomjoinfailed", e => {
}).on("existingparticipants", (sender) => {
});
});
  </script>