]
}
WebRTC Subscriber configuration for Kurento Media Server. The endpoint for the demo backend service is one2many
.
Supplied is a java backend spring service. Offering the one2many web socket application. Which talks to the Kurento server using the Kurento client API.
<div class="flex w-full h-auto my-auto">
<video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="kurento-subscriber"></video>
</div>
<script type="text/javascript">
var player = videojs("kurento-subscriber", {
"plugins": {
"rtcsubscriber": {
"applicationName": "one2many",
"channelName": "kurentodata",
"dataChannel": true,
"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"
]
}
],
"server": "kurento",
"serverURL": "rtc.electroteque.org:8444"
}
},
"sources": [
{
"src": "C6Lx6ku6FEXgKtt",
"type": "application/webrtc"
}
]
});
</script>