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 achieved delay is a function of the segment duration, when the
stream is requested with respect to the segment boundaries, as well as the amount of data the source buffers need to begin decoding.
Enter the URL to a live (dynamic) stream manifest :