Videojs live stream test

Live streaming for both desktop and mobile devices became easy using the VideoJS player. You only need to provide a valid m3u8 manifest as a video source. HTTP Live Streaming (HLS and DASH) is an adaptive streaming communications protocol that can distribute both live and on-demand files and is the sole technology available for adaptively streaming to devices, and is an increasingly important target segment to streaming publishers.

Code snippet
<link href="//" rel="stylesheet">
<script type=text/javascript" src="//"></script>
<script type=text/javascript" src="//"></script>

<link href="//" rel="stylesheet">
<video id="myplayer" class="video-js vjs-fluid" poster="/path-to-poster.jpg" controls preload="auto">
<source src="//" type="application/x-mpegURL">

var player = videojs('myplayer');
Live DVR streaming is detected automatically, when the playlist duration is greater than the threshold value (300s). This value can be changed by setting Nuevo plugin's dvrMin option.
Code snippet
player.nuevo({ dvrMin:600 });
You can also force DVR on live streams by setting video.js option:
Code snippet
var player = videojs('myplayer',{liveui: true}};
The Nuevo plugin detects available qualities for HLS and DASH live streams automatically. Depending on the HLS or Dash playlist protocol, available qualities to switch between are presented in the quality menu as kbps or as the video resolution value (video height). HD, FullHD, and 4K icons are populated automatically for the appropriate video resolution.