Live delay comparison using setLiveDelayFragmentCount

This sample illustrates the combined effects of segment duration and the "setLiveDelayFragmentCount" MediaPlayer method on the latency of live stream playback.

The upper layer of videos are all playing a live stream with 2s segment duration. The lower layer use 6s segment duration. For each stream, the playback position behind live is varied between 0, 2 and 4 segments.

Note that the default value for dash.js is 4 segments, which is a trade off between stability and latency. Lowest latency is achieved with shorter segments and with a lower liveDelayFragmentCount. Higher stability/robustness is achieved with a higher liveDelayFragmentCount.

Wall Clock reference time

2s segment, 0 segments behind live
Seconds behind live:
Buffer length:
2s segment, 2 segments behind live
Seconds behind live:
Buffer length:
2s segment, 4 segments behind live
Default
Seconds behind live:
Buffer length:
6s segment, 0 segments behind live
Seconds behind live:
Buffer length:
6s segment, 2 segments behind live
Seconds behind live:
Buffer length:
6s segment, 4 segments behind live
Default
Seconds behind live:
Buffer length: