Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to parse an M3U8 file in Objective C? [closed]

I'm trying to save .ts segments to the disk drive from an HLS stream to achieve record functionality. After going through Record HTTP Live Streaming Video To File While Watching? and Save HLS stream on iPhone/iPad came to the conclusion to save the files to disk and set up a server locally and stream it from there. Bu I'm having issues parsing an M3U8 file. Found an M3U8Kit but not what I was looking for. Can anyone point me in the right direction as how to parse an M3U8 file? It looks something like this

#EXTM3U

#EXT-X-TARGETDURATION:10

#EXT-X-MEDIA-SEQUENCE:1

#EXTINF:10,
http://media.example.com/segment0.ts
#EXTINF:10,
http://media.example.com/segment1.ts
#EXTINF:10,
http://media.example.com/segment2.ts
#EXT-X-ENDLIST
like image 234
Wizard Of iOS Avatar asked Jun 06 '13 05:06

Wizard Of iOS


1 Answers

Also for those who might need this, M3U8Paser is an extended library of M3U8Kit to parse an m3u8 file to get the links for multiple m3u8 files used for adaptive streaming

like image 102
Wizard Of iOS Avatar answered Oct 31 '22 18:10

Wizard Of iOS