Modify m3u8 file dynamically at runtime (iOS)

Does anyone know if I can change the m3u8 file dynamically at runtime?

The scenario is as follows: let's say I have several .ts files ready to play in sequence, for example 1.ts, 2.ts, 3.ts, etc.

Now at runtime I want to change the order to 1.ts, 3.ts, and only then 2.ts.

Is it possible?

Thanks,

+4
source share
1 answer

The answer is in the standard http://tools.ietf.org/html/draft-pantos-http-live-streaming-07#section-6.2.1 :

The server MUST NOT modify the playlist file, except:

Add lines to it (section 6.2.1).

Remove the media URIs from the playlist in the order in which they appear, along with any tags that apply only to these media URIs (Section 6.2.2).

Increment the value of the EXT-X-MEDIA-SEQUENCE tag (Section 6.2.2).

Add or remove EXT-X-STREAM-INF tags or EXT-XI-FRAME-STREAM-INF tags (section 6.2.4). Please note that clients do not need to reload playlist file options, so changing them may not have an immediate effect.

Add the EXT-X-ENDLIST tag to the playlist (section 6.2.1).

In any case, this is rather pointless, since segments can be correlated in order (has common keyframes)

+8
source

All Articles