- refactor logic and model from status.xml and playlist.xml to prepare those to work as simple views driven by the model. This will allow the .json files to exist as models as well - so .json is also added as a mimetype
- refactor status.xml to use data from shared model in luahttp.lua
- added status.json - mimics functionality of status.xml
When playing a live stream, the thread didn't wait for an event, so it's
like a while(1)... Just wait until we read/need a new segment.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
The httplive module doesn't always append a null character after reading the
playlist. Many str* function is used on the playlist buffer (strstr, printf,
...). We must ensure that the buffer is null terminated, else we will read
random data.
We also have two functions readM3u8() and read_M3u8() that does the same
job. Rewrite it into read_M3U8_from_url() and read_M3U8_from_stream().
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
moof box is a new box mainly used to produce fragmented mp4 movie.
Smoothstreaming is known to used this format.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Optimize for installed VLC rather than running from $(top_srcdir).
This patch does not support relocation, so there is potential for
further improvements.
This sets all client (APPLICATION) properties except ICON and
PROCESS_BINARY. Now KDE mixer shows the VLC traffic cone!
ICON is useless as we do provide the ICON_NAME anyway.
PROCESS_BINARY is set just fine by libpulse internally.
I find both would be cumbersome to implement in VLC.
Draining after flushing makes no sense. By the way, we should probably
wait for draining to complete. But there seems to be a race condition
in libpulse and this causes a deadlock.
Maximum buffering time (AOUT_MAX_PREPARE_TIME) is increased to 2
seconds, consistent with increases in audio hardware buffer sizes.
In practice however, this is bound to the input PTS delay.
Maximum advance time is updated accordingly (+ 1 second).
Lip desynchronization tolerance is segregated, following EBU R37:
- 40 ms (as before) maximum audio advance
- 60 ms maximum audio delay.