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-publisher"></video>
</div>
<script type="text/javascript">
var player = videojs("ovenmedia-publisher", {
"plugins": {
"peakmeter": {},
"rtcpublisher": {
"applicationName": "app",
"autoStartDevice": true,
"debug": true,
"floatedControls": false,
"maxDeviceDimensions": false,
"maxHeight": 720,
"maxWidth": 1280,
"ovenmedia": {
"policy": ""
},
"preferredCodecs": null,
"publisher": true,
"recording": {
"codec": "VP9",
"mimeType": "video/webm",
"name": "recording1"
},
"server": "ovenmedia",
"serverURL": "rtc.electroteque.org:3334",
"toggleScreen": true
}
},
"sources": [
{
"appName": "webrtc",
"src": "stream",
"type": "application/webrtc"
}
]
});
</script>