• Aman Gupta's avatar
    avformat/hls: add http_persistent option · b7d6c0cd
    Aman Gupta authored
    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: 's avatarAman Gupta <aman@tmm1.net>
    Signed-off-by: 's avatarAnssi Hannula <anssi.hannula@iki.fi>
    b7d6c0cd
hls.c 75.2 KB