[vlc-devel] HLS in Android and #EXT-X-DISCONTINUITY

Nelson Perez bilthon at gmail.com
Thu Oct 24 16:18:32 CEST 2013

Hello, I've been testing the HLS support for the Android platform and it
works fine. There were some problems before, but apparently they are all
fixed now. The only problem I found today has to do with handling

Every time this tag appears on the m3u8 manifest file, the playback is
interrupted and the app freezes. I'm particularly interested in correctly
handling this event because I'm trying to develop a system where new
streams are started on demand by the users and these newly created streams
all come with this tag on the first fragment.

The documentation<http://tools.ietf.org/html/draft-pantos-http-live-streaming-07#section-6.3.3>states

The client MUST be prepared to reset its parser(s) and decoder(s)
   before playing a media segment that has an EXT-X-DISCONTINUITY tag
   applied to it.

But it's not clear to me how this should be done in the context of
libvlc. Taking a look at the source code
I found the parse_Discontinuity function, that should probably handle
this event.

static int parse_Discontinuity(stream_t *s, hls_stream_t *hls, char *p_read)

    /* FIXME: Do we need to act on discontinuity ?? */
    msg_Dbg(s, "#EXT-X-DISCONTINUITY %s", p_read);
    return VLC_SUCCESS;


But as you can see it currently doesn't do much. Any help will be appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131024/7916adb2/attachment.html>

More information about the vlc-devel mailing list