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



I need to implement this using Swift 4.


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