MPMoviePlayerController and local m3u8 files

前端 未结 1 1259
余生分开走
余生分开走 2021-02-04 21:27

I\'m trying to load an m3u8 file that\'s saved to the local filesystem, but the MPMoviePlayerController refuses to play it, citing \"m3u8 is not a supported media type\". Howeve

相关标签:
1条回答
  • 2021-02-04 22:24

    Well, according the RFC they lay out for m3u8 streaming, it can only be done over HTTP. Personally, I think it's kind of silly to require HTTP when the files can be readily accessed through the file protocol, but them's the breaks. I just used a simple HTTP server to serve the m3u8 file and the subsequent ts files.

    0 讨论(0)
提交回复
热议问题