[Bug 726314] Add cookie jar to uridownloader

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Oct 27 10:32:43 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=726314

Philippe Normand <phil at base-art.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |phil at base-art.net

--- Comment #5 from Philippe Normand <phil at base-art.net> ---
I've been experimenting with this approach:

- source element handles a "http" context query performed by uridownloader and
adaptivedemux
- the context is set on adaptivedemux
- the context somehow stores the cookies. For now I'm reusing the GstCookieJar
from bug 731170
- when downloading fragments adaptivedemux fetches the cookies from the context
and set them on the source element if it has a cookies property

We could store more informations inside the context, like HTTP referer,
user-agent, custom headers, I suppose.

With this approach I have here WebKit fetching the main playlist with the
webkitwebsrc element, and uridownloader/adaptivedemux downloading
fragments/manifests with cookies in http requests managed by souphttpsrc :)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list