<div dir="ltr">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 the #EXT-X-DISCONTINUITY tag.<div>
<br></div><div>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.</div>
<div><br></div><div>The <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-07#section-6.3.3">documentation</a> states that:</div><div><br></div><div><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">
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.</pre><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal">But it's not clear to me how this should be done in the context of libvlc. Taking a look at the <a href="http://www.videolan.org/developers/vlc/modules/stream_filter/httplive.c">source code</a> I found the parse_Discontinuity function, that should probably handle this event.</span></pre>
<pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal"><br></span></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">
static int parse_Discontinuity(stream_t *s, hls_stream_t *hls, char *p_read)
{
    assert(hls);

    /* FIXME: Do we need to act on discontinuity ?? */
    msg_Dbg(s, "#EXT-X-DISCONTINUITY %s", p_read);
    return VLC_SUCCESS; </pre><pre class="" style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0);white-space:pre-wrap;font-family:arial">}</span></pre><pre class="" style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,0);white-space:pre-wrap;font-family:arial"><br></span></pre><pre class="" style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0);font-family:arial;white-space:normal">But as you can see it currently doesn't do much. Any help will be appreciated.</span></pre>
<pre class="" style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0);font-family:arial;white-space:normal"><br></span></pre><pre class="" style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0);font-family:arial;white-space:normal">Nelson</span></pre>
</div></div>