Note: A working live example to demonstrate live WebRTC publishing and subscribe features.
WebRTC Subscriber configuration for Dolby.io. The account ID is required to be configured. A static list of Ice servers is also required.
If WebRTC simulcast bitrate configurations is being published. A bitrate menu will be displayed for layer selection or switch back to auto selection.
{
"subscriber": {
"dolbyio": {
"accountId": "",
"subToken": ""
},
"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"
]
}
]
}
}
<div class="flex w-full h-auto my-auto">
<div id="dolbyio-subscriber" class=""></div>
</div>
<script type="text/javascript">
var player = jwplayer("dolbyio-subscriber").setup({
"aspectratio": "16:9",
"live": true,
"playbackRateControls": true,
"plugins": {
"../../js/webrtcsubscriber.js": {}
},
"sources": [
{
"appName": "webrtc",
"file": "C6Lx6ku6FEXgKtt",
"live": true,
"type": "mp4"
}
],
"subscriber": {
"dolbyio": {
"accountId": "huaHNT",
"subToken": "b23ebffd67a92feff751983ad91c4ddfd83285b5a3b899cffbab1d28275dce44"
},
"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": "dolbyio"
},
"width": "100%"
});
</script>