"sources": [
{ "type": "application/webrtc", "src": "C6Lx6ku6FEXgKtt"}
]
}
WebRTC Publisher configuration for Kurento Media Server. The endpoint for the demo backend service is one2many
An Ice server list is required to be configured.
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">
<div id="kurento-publisher" class=""></div>
</div>
<script type="text/javascript">
var player = jwplayer("kurento-publisher").setup({
"aspectratio": "16:9",
"playbackRateControls": true,
"plugins": {
"../../js/webrtcpeakmeter-8.20.0.js": {},
"../../js/webrtcpublisher-8.20.0.js": {
"applicationName": "one2many",
"autoStartDevice": true,
"channelName": "data",
"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"
]
}
],
"publishResumeable": true,
"publisher": true,
"publisherStopDelay": 60,
"server": "kurento",
"serverURL": "rtc.electroteque.org:8443",
"toggleScreen": true
}
},
"sources": [
{
"appName": "webrtc",
"file": "C6Lx6ku6FEXgKtt",
"live": true,
"publisher": true,
"type": "mp4"
}
],
"width": "100%"
});
</script>