"sources": [
{ "type": "application/webrtc", "src": "C6Lx6ku6FEXgKtt"}
]
}
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 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 flex-col w-full">
<div id="kurento-publisher" class=""></div>
</div>
<script type="text/javascript">
var player = flowplayer("#kurento-publisher", {
"live": true,
"peakmeter": {},
"rtc": {
"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:8444",
"toggleScreen": true
},
"src": [
{
"publisher": true,
"src": "C6Lx6ku6FEXgKtt",
"type": "application/webrtc"
}
],
"token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw"
});
</script>