Skip to content

HLS streaming - :http-referrer is not propagated to chunk requests

This is VLC 3.0.8 Issue also present in nightly vlc-4.0.0-dev-win64-ca3b0ed9 from 20-Apr-2020 04:43

Some streams are referrer locked so you add :http-referrer option. Referrer header is set to requests for the master playlist and also to requests for chunklists.

Unfortunately it's not set on requests for the actual audio chunks, so I'm getting 403 when downloading stream's aac fragments.

Reproduce by:

URL: https://liveingesta118.cdnmedia.tv/laxlive/smil:live.smil/playlist.m3u8

Options: :network-caching=1000 :http-referrer=https://www.laxmasmusica.com/

Messages:

adaptive error: Failed reading https://liveingesta118.cdnmedia.tv:443/laxlive/smil:live.smil/media-umvtjsnq8_b48000_2255.aac: HTTP/1.1 403 Forbidden
adaptive error: Failed to create demuxer 00000000 Unknown
adaptive error: Failed reading https://liveingesta118.cdnmedia.tv:443/laxlive/smil:live.smil/media-umvtjsnq8_b48000_2256.aac: HTTP/1.1 403 Forbidden

Of course you would't even get to get playlist.m3u8 nor chunklist_b48000.m3u8 when :http-referrer=https://www.laxmasmusica.com/ is not used.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information