avformat/hls: add http_persistent option
authorAman Gupta <aman@tmm1.net>
Wed, 4 Oct 2017 21:52:52 +0000 (14:52 -0700)
committerAman Gupta <aman@tmm1.net>
Fri, 22 Dec 2017 22:42:50 +0000 (14:42 -0800)
commitb7d6c0cd48dac7869b9e6803e2d47d05a4fa373b
treefaad20f9e634fc4c5a4899b3808b581113eef02e
parent9395e44b8d20d1d4c72dd5b42d28721ca191d957
avformat/hls: add http_persistent option

This teaches the HLS demuxer to use the HTTP protocols
multiple_requests=1 option, to take advantage of "Connection:
Keep-Alive" when downloading playlists and segments from the HLS server.

With the new option, you can avoid TCP connection and TLS negotiation
overhead, which is particularly beneficial when streaming via a
high-latency internet connection.

Similar to the http_persistent option recently implemented in hlsenc.c

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
doc/demuxers.texi
libavformat/hls.c