Post

Replies

Boosts

Views

Activity

Reply to Downloaded HLS stream doesn't work offline
Hi there,we also ran into the same problem. We were able to fix it by sorting the stream playlist items in the master m3u8 file by bandwidth in descending order. This approach was also mentioned in session 503 of WWDC 2016 @ 33:15 (https://developer.apple.com/videos/play/wwdc2016/503) to better estimate the initial quality of the HLS playback.Cheers!Update:After sorting the playlist items, the problem reappeared eventually. After another debugging session with different HLS streams, we noticed that downloaded HLS streams adhere to the `Cache-Control` HTTP header of the playlist URLs. In our case, a `must-revalidate` was included in the header value. This value led to the described problem after the cache became stale/expired (`max-age` value in `Cache-Control` header). Choosing an appropriated header value without including `must-revalidate`, resolved the problem instantly for us in a reproducible manner.
Jan ’20