AVAssetResourceLoaderDelegate + HLS broken in iOS 9?

Using AVAssetResourceLoaderDelegate with HLS content appears to be broken in iOS 9 betas 1 and 2. Regular HLS content plays fine, but it seems that using non-http URL schemes in M3U8 playlists causes a fatal error every time (code -12643, which appears to be undocumented along with many other HLS-related error codes). Is this an on-purpose change or a bug/regression? AVARLDelegateDemo performs a lot of this logic and is also broken. I created a bug report (21709212) but hopefully this post can give it some extra visibility. Is anyone else able to reproduce this issue?

Answered by cloud in 26439022

I tried beta 3 with AVARLDelegateDemo I can see it's still reproing on the simulator. But it seems to be working on my iPhone 5 (iOS 9 beta 3). But our product build (whitch is heavily relying on RL) won't work as before. I'm still investigating the error. Are you able to repro this on device?

Accepted Answer

I tried beta 3 with AVARLDelegateDemo I can see it's still reproing on the simulator. But it seems to be working on my iPhone 5 (iOS 9 beta 3). But our product build (whitch is heavily relying on RL) won't work as before. I'm still investigating the error. Are you able to repro this on device?

Thanks for pointing that out. The demo app as well as my implementation using the same API work as intended on iOS 9 beta 3 on-device (iPhone 5S). It is still a problem for me in the simulator though. I've updated the radar to reflect this.

AVAssetResourceLoaderDelegate + HLS broken in iOS 9?
 
 
Q