iheartradio / open-m3u8

Open Source m3u8 Parser
Other
245 stars 94 forks source link

Live playlist #36

Open samek opened 8 years ago

samek commented 8 years ago

How can you define a live playlist ? (no #EXT-X-ENDLIST at the end)

samek commented 8 years ago

.withIsOngoing(true)

MediaPlaylist mediaPlaylist = new MediaPlaylist.Builder()
                .withMediaSequenceNumber(this.seqnum)
                .withTargetDuration((int)Math.ceil(maxDuration))
                .withTracks(tracks)
                .withIsOngoing(true)
                .build();
Wopple commented 8 years ago

I apologize for not getting back to you sooner, my life is very hectic at the moment.

You are correct, setting withIsOngoing(true) should prevent the writer from writing the EXT-X-ENDLIST tag. Is it not working for you?