I am trying to save .ts segments to disk from an HLS stream to achieve recording functionality. After passing Record an HTTP streaming video to a file while watching? and Save the HLS stream to iPhone / iPad for output, to save the files to disk and configure the server locally and transfer it from there. I'm having trouble parsing the M3U8 file. Found M3U8Kit , but not what I was looking for. Can someone point me in the right direction how to parse the 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
Also for those who might need it, M3U8Paser is an extended M3U8Kit library for parsing the m3u8 file to get links for several m3u8 files used for adaptive streaming
I know this is an old question, but open source, MIT Licensed, Pantomime can meet your needs.
Source: https://habr.com/ru/post/946646/More articles:What is the difference between: android: attr / textAppearanceMedium and? Android: textAppearanceMedium? - androidSmoothing an array of objects into another array of objects using javascript - javascriptIn jQuery mobile 1.3.1, how do you set the selected value to selectmenu? - javascriptWhen does a MongoDB Java Driver application establish a connection? - javaCustom Method NSLog (Variadic) - stringAn explanation of the layout syntax is required android - androidSave HLS Stream to iPhone / iPad - objective-chttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/946649/how-to-add-items-to-mvc-model-in-javascript&usg=ALkJrhj0wP5Q9WetENU8ejmZCofUwKe8zQThe T4 namespace cannot contain membes directly, such as fields or methods - c #How is a Javascript array compared? - javascriptAll Articles