[vlc-devel] HLS in Android and #EXT-X-DISCONTINUITY
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
the #EXT-X-DISCONTINUITY tag.
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 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
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);
But as you can see it currently doesn't do much. Any help will be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel