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.
2s segment, 0 segments behind live

Seconds behind live:
2s segment, 2 segments behind live

Seconds behind live:
2s segment, 4 segments behind live (default)

Seconds behind live:
Wall clock time
:
6s segment, 0 segments behind live

Seconds behind live:
6s segment, 2 segments behind live

Seconds behind live:
6s segment, 4 segments behind live (default)

Seconds behind live: