OvenMedia WebRTC Subscriber

WebRTC Subscriber with ABR playlist selection.

If ABR playlist and encodes is configured in the server and playlist name is configured with the stream name. A bitrate menu will be displayed for layer selection or switch back to auto selection. See the docs how to configure ABR playlists.

Add the playlist name to the end of the stream name ie stream/abr

Only one to many is possible for now until a custom WebSocket solution for group call peering is available.

Oven Media Engine supports P2P Delivery for subscribers. This needs to be first configured and is integrated.

If testing with the Docker image before custom compiling the server. Configure wsSecure to disable secure WebSocket with no SSL configured and transportTcp as UDP transport doesn't work to the Docker image.

Configured is a Signed Policy token config for providing stream security if setup in the server.

    <div class="flex w-full h-auto my-auto">
          <div id="ovenmedia-subscriber-abr" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = jwplayer("ovenmedia-subscriber-abr").setup({
    "aspectratio": "16:9",
    "playbackRateControls": true,
    "plugins": {
        "../../js/webrtcsubscriber-8.20.0.js": {}
    },
    "sources": [
        {
            "appName": "webrtc",
            "file": "stream/abr",
            "live": true,
            "publisher": false,
            "type": "mp4"
        },
        {
            "src": "http://rtc.electroteque.org:1935/webrtc/myStream_360p/playlist.m3u8",
            "type": "application/x-mpegurl"
        }
    ],
    "subscriber": {
        "applicationName": "app",
        "debug": true,
        "ovenmedia": {
            "policy": ""
        },
        "server": "ovenmedia",
        "serverURL": "rtc.electroteque.org:3334"
    },
    "width": "100%"
});
  </script>