Note: Not a live demo, server configuration is just for example. For live working example try the Dolby.io Publisher and Subscriber example. Or AWS Kinesis Publisher and Subscriber example.
WebRTC Subscriber configuration for Oven Media Engine.
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">
<div id="ovenmedia-subscriber-abr" class=""></div>
</div>
<script type="text/javascript">
var player = flowplayer("#ovenmedia-subscriber-abr", {
"clip": {
"live": true,
"sources": [
{
"src": "stream/abr",
"type": "application/webrtc"
}
]
},
"rtc": {
"applicationName": "app",
"ovenmedia": {
"policy": ""
},
"server": "ovenmedia",
"serverURL": "rtc.electroteque.org:3334"
},
"share": false
});
</script>