
Live delay comparison custom manifest
This sample allows you to explore the two MediaPlayer APIS which control live delay - setLiveDelay and setLiveDelayFragmentCount.
The first takes the desired delay in seconds. The second takes the delay in terms of fragment count. If you use both together, setLiveDelay will take priority. If you set neither, the default delay of 4 segment durations will be used.
Note that using either method will not result in the
offset exactly matching the requested
setings. The final
delay depends on the time to fill the source buffers and the amound of data required to begin
decoding.