iOS: Stream playlist from m3u8 file

问题内容:

I have an m3u8 file. It contains video and audio files for the clip.

  1. How can I download audio and video file chunk by chunk using two threads. Should they be saved in a one file (audio and video).
  2. What should be the file format.
  3. How can I play the downloaded file.

File m3u8 contains

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=”audio-0″,NAME=”Default”,AUTOSELECT=YES,DEFAULT=YES,URI=”hls_a192K_v4.m3u8″

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=968000,RESOLUTION=640×360,CODECS=”avc1.42001e,mp4a.40.2″,AUDIO=”audio-0″

I need to implement this using Swift 4.

问题评论:

What have you tried already? what issue are you getting with your current implementation

原文地址:

https://stackoverflow.com/questions/47753127/ios-stream-playlist-from-m3u8-file

添加评论

友情链接:蝴蝶教程