how to download m3u video in IOS app? [closed]

无人久伴 提交于 2019-12-06 04:29:08

问题


I'm developing an IOS application which will download some videos to local so that users can watch those videos offline. But currently, a lot of videos are m3u and m3u8 format. As I know m3u and m3u8 is just a video list. So my question is how I can download the real video file into local and play them for m3u and m3u8 format.


回答1:


First of all, m3u or m3u8 is a playlist, does not contain music data.

To parse the file, you can follow the answer here. After you parsed the file, you can fetch the real media URL and load it with media player.

Reference of M3U file format in Wikipedia : http://en.wikipedia.org/wiki/M3U

UPDATE: Furthermore, another guy is doing similar thing. You can review his code here.



来源:https://stackoverflow.com/questions/14016750/how-to-download-m3u-video-in-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!