GNOME Bugzilla – Bug 766367
hlsdemux: 403 forbidden for bbc hls stream due to missing cookie handling
Last modified: 2018-11-03 16:13:00 UTC
Hi all, I created the following pipeline to play some HLS streams from BBC: gst-launch-1.0 uridecodebin uri=http://open.live.bbc.co.uk/mediaselector/5/redir/version/2.0/vpid/b077jfrp/mediaset/audio-syndication/proto/http ! fakesink I get a (Forbidden (403)) error and from the tests done I think this happens because the gstsouphttpsrc sends the cookie event to gsthlsdemux but this dosent seems to know what to do with the cookie. Any advise on how to fix this error?
Repathing to GStreamer team.
Do any other players such as VLC or mplayer play the stream fine (without 403)? Would geolocation place the machine you're trying to play this on in the UK?
The machine's geolocation is in the UK and I tried to play the stream with VLC but I get the same 403 error.
I have done some more tests using wget and the stream seems to be working fine if the cookie is handled properly: wget --keep-session-cookies --save-cookies cookies.txt "http://open.live.bbc.co.uk/mediaselector/5/redir/version/2.0/vpid/b077jfrp/mediaset/audio-syndication/proto/http" --2016-05-17 12:58:24-- http://open.live.bbc.co.uk/mediaselector/5/redir/version/2.0/vpid/b077jfrp/mediaset/audio-syndication/proto/http then: wget --mirror --load-cookies cookies.txt 'http://cp401492-vh.akamaihd.net/i/prod_af_mp4_aaclc_128/iplayerstream/l2o/b077jfrp_b111b544-55ab-4845-a26a-bd1bf96e8e0d.mp4/index_0_a.m3u8' --2016-05-17 13:00:19-- http://cp401492-vh.akamaihd.net/i/prod_af_mp4_aaclc_128/iplayerstream/l2o/b077jfrp_b111b544-55ab-4845-a26a-bd1bf96e8e0d.mp4/index_0_a.m3u8 so it looks like the problem is because of the cookie. soup is posting the http-headers event with the cookie but hlxdemux dosent understand the event.
There is some ongoing work to have http elements share their context. Cookies, user-agent, referer url and extra headers. philn was finishing up some final details and we should get a first proposal for this.
Context are now shared nowadays. Could you retry (not in the uk) ?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/11.