
Live delay comparison using setLiveDelay
This sample illustrates the combined effects of segment duration and the "setLiveDelay" MediaPlayer method on the latency of live stream playback.
The upper layer of videos are all playing a live stream with 2s segment duration, with setLiveDelay values of 2s, 4s, and 8s. The lower layer use 6s segment duration, with setLiveDelay values of 6s, 12s, and 24s. Lowest latency is achieved with shorter segments and with a lower live delay value. Higher stability/robustness is achieved with a higher live delay which allows a larger forward buffer.
Wall Clock reference time
2s segment, 2s target latency
Seconds behind live:
Buffer length:
2s segment, 4s target latency
Seconds behind live:
Buffer length:
2s segment, 8s target latency
Default Seconds behind live:
Buffer length:
6s segment, 6s target latency
Seconds behind live:
Buffer length:
6s segment, 12s target latency
Seconds behind live:
Buffer length:
6s segment, 24s target latency
Default Seconds behind live:
Buffer length: