iheartradio / open-m3u8

Open Source m3u8 Parser
Other
248 stars 94 forks source link

Support floating point segment length duration for HLS PlaylistV3 #39

Closed saravindpsg closed 7 years ago

saravindpsg commented 8 years ago

I am using open-m3u8 for parsing HLS manifest and transforming it. I noticed that for Playlist Version 3 (#EXT-X-VERSION:3) , the HLS Specification says it allows for segment duration to be specified as floating point duration. However in the code I found out that floating point duration is allowed only for version 4 and above. This PullRequest is to fix this.

Here is a reference to HLS Spec : https://developer.apple.com/library/content/qa/qa1752/_index.html

Wopple commented 7 years ago

@saravindpsg I apologize for the late reply. It appears you are correct, thank you.

@sunglee413 LGTM