I am trying to get AVPlayer to play a m3u8 playlist that is a local file.
I have narrowed this down to a simple test case using one of Apple's sample playlists:
https://tungsten.aaplimg.com/VOD/bipbop_adv_fmp4_example/master.m3u8
If i play this playlist from the remote url, AVPlayer plays this fine. However, if i download this playlist to a local file, and then hand AVPlayer the local file URL, AVPlayer will not play it. It just shows the crossed out play symbol.
Interestingly enough, this can be duplicated with Safari as well. Safari will play the remote playlist but not the local file. Also of note is that this behavior of AVPlayer is identical on iOS 10.2 as well as macOS 10.12.1. Also, playing an mp4 media file directly (not wrapped in a playlist) does not seem to have this issue, as it plays both from a remote URL as well as from a local file.
Inspecting the AVPlayerItem.error does not lead to anything useful either:
An unknown error occurred (-12865) The operation could not be completed
Is anyone aware of any limitation that AVPlayer would not play a local playlist?
Thank you.