}
Live Edge source selection and fallback. With pseudo load balancer round robin source selection features.
<div class="flex w-full h-auto my-auto">
<video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="liveedge"></video>
</div>
<script type="text/javascript">
var player = videojs("liveedge", {
"live": true,
"liveui": true,
"plugins": {
"liveoffline": {
"autoreconnect": true,
"failedSourceTime": 60,
"fallbackResolver": true,
"offline": "Offline",
"reconnect": "Reconnecting In ",
"reconnectTime": 30,
"roundRobin": true
}
},
"sources": [
{
"src": "https://videos.electroteque.org/hls/bigbuckbunny/playlist3.m3u8",
"type": "application/x-mpegurl"
},
{
"src": "https://videos.electroteque.org/hls/bigbuckbunny/playlist2.m3u8",
"type": "application/x-mpegurl"
},
{
"src": "https://videos.electroteque.org/hls/bigbuckbunny/playlist.m3u8",
"type": "application/x-mpegurl"
}
]
});
</script>