HLS Offline playback problems

I've been using your latest APIs to playback offline HLS assets, I have being struggling a lot as I'm using your sample app (found here: https://developer.apple.com/library/prerelease/content/samplecode/HLSCatalog/History/History.html#//apple_ref/doc/uid/TP40017320-RevisionHistory-DontLinkElementID_1) and it contains errors that I needed to fix to make the offline experience "work".


I've completed all the download workflow and I getting used to it, but I'm having difficulties in understanding how the MediaSelections work. I'm testing with a sample asset you provide in the app called "Basic Stream" and it looks like it contains CC's, but the truth is that I want to playback an asset with their default rendition, without any other complementary information, meaning I don't want additional media selections, they way I did this is just by commenting the lines that do additional download of the media selections, and I would only have the original file downloaded at the specified bitrate.


By debugging the app, I made sure I'm loading a local saved asset previously downloaded in the app, and it playbacks fine but only with Internet connectivity, but when I turn off the wifi (for example, by using airplane mode on), i'm not able to playback the video that I already downloaded. I found out that the AVPlayerItem never reaches the status of readyToPlay, and the player will be visible with a Loading screen only. Is this a bug? Or am I doing something wrong?


Let's continue this converstion as I really want to use this API.

I just updated to iOS 10 beta 5 (14A5335b) and the expected behavior now works perfectly 🙂 I'm happy about that. With this iOS update, now I'm able to play a downloaded asset without internet connection.

I have the same problem here, plus I can not monitor the download.

Any help? (I tried with sample app by Apple, it does not work too)

HLS Offline playback problems
 
 
Q