iheartradio / open-m3u8

Open Source m3u8 Parser
Other
248 stars 94 forks source link

No support for playlists in progress. #26

Closed dbousamra closed 8 years ago

dbousamra commented 8 years ago

When writing a playlist, EXT-X-ENDLIST tag is always appended at the end. In progress playlists can have files appended as they become available.

Wopple commented 8 years ago

Can you explain what you mean by "in progress playlists?" What is an example API you are looking for?

dbousamra commented 8 years ago

I don't yet have an API in mind. I was just reading the Apple docs and saw some info about the #EXT-X-ENDLIST tag, and how there are playlists that are still valid with an omitted tag. At the moment, I just string trim the completed playlist of the tag, because looking at the source, I couldn't see any logic around ENDLIST tags.

Wopple commented 8 years ago

Within the streaming domain, my guess is that there are two use cases here and you are interested in the second:

  1. Make periodic short lived requests for a few chunks at a time and concatenate them on the client
  2. Make one long lived request that the server keeps open and periodically appends chunks as they become available

This library only supports the 1st one at present. To support the second, we would have to provide an event based API.

Are my assumptions correct?