OvenMedia WebRTC Group Call

WebRTC Conferencing for OvenMediaEngine. Second participant. Uses rest api for gathering streams.

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

    
  <div class="flex flex-col w-full">
          <div id="ovenmedia-conference-4" class=""></div>

  </div>
  <script type="text/javascript">
  	var player = flowplayer("#ovenmedia-conference-4", {
    "live": true,
    "peakmeter": {},
    "rtc": {
        "applicationName": "app",
        "autoStartDevice": true,
        "buttons": false,
        "conference": {
            "container": "#conference-container"
        },
        "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"
                ]
            }
        ],
        "ovenmedia": {
            "apiToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJPbmxpbmUgSldUIEJ1aWxkZXIiLCJpYXQiOjE2MzY5MDE2MTQsImV4cCI6MTY2ODQzNzYxNCwiYXVkIjoid3d3LmV4YW1wbGUuY29tIiwic3ViIjoianJvY2tldEBleGFtcGxlLmNvbSIsImNvbW1hbmQiOiJhdmFpbGFibGVTdHJlYW1zIn0.A8spwEH6zcpy8TJB0i31_xa-cg43clGk8VK43sa_ZLQ",
            "policy": "",
            "roomServerURL": "https://rtc.electroteque.org:8444/ome",
            "transportTcp": true
        },
        "preferredCodecs": null,
        "publisher": true,
        "roomName": "room1",
        "seperateScreen": true,
        "server": "ovenmedia-conference",
        "serverURL": "127.0.0.1:3333",
        "verticalMeter": false,
        "wsSecure": false
    },
    "src": [
        {
            "publisher": true,
            "src": "room1-jq574AA8FHQUEFD",
            "type": "application/webrtc"
        }
    ],
    "title": "Participant 2",
    "token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw"
});

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