Skip to content

Basic HTTP authorization header support

Alfred Neumayer requested to merge xenial_-_httpheaders into xenial

Implement basic HTTP authorization by parsing the header and setting user credentials for the GStreamer source accordingly.

Implementation details:

When playing media through QtMultimedia media-hub will enqueue it through the track list first, adding the need for having HTTP headers cached until use.

Since the track list is also part of the public API/MPRIS we can't just extend it by changing the add_track method signature. Instead, since we already have an OpenUriExtended DBus API not part of the MPRIS spec, we set the headers right before the URI is added, so that the headers are attached to their known track ID.

Merge request reports