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.
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">
<video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="ovenmedia-subscriber"></video>
</div>
<script type="text/javascript">
var player = videojs("ovenmedia-subscriber", {
"plugins": {
"rtcsubscriber": {
"applicationName": "app",
"ovenmedia": {
"policy": ""
},
"server": "ovenmedia",
"serverURL": "rtc.electroteque.org:3334",
"transportTcp": true
}
},
"sources": [
{
"src": "stream",
"type": "application/webrtc"
}
]
});
</script>