GNOME Bugzilla – Bug 534482
Doesn't allow overriding the user-agent
Last modified: 2009-09-02 12:23:43 UTC
This is needed for Totem's browser plugin, as it allows us to mimick existing browser plugins, such as QuickTime, WMP, etc. In gnome-vfs this was done by setting an envvar (GNOME_VFS_HTTP_USER_AGENT), but wouldn't be possible in gvfs as the plugin viewer isn't the one launching the gvfsd-http subprocess. Ideas welcome
Its sort of problematic. GVfs is designed to be a vfs, i.e. allow simple file loading on various backends. Its not designed to be a streaming http library, with all the features availible for something like that. Ideally we should have a lower layer library that apps can use if they need detailed control over http stuff, and gvfs which uses this library to make it easy for all apps to just read files on http. Atm this lower level library is libsoup, but it might not be ideal for totem.
doesn't totem use gstreamer anyway? using gvfs seems totally wrong since you'd have to mount the remote server, etc.
We now do this inside Totem changing the libsoup-based source's user-agent ourselves.