After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 375867 - check user-agents
check user-agents
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Browser plugin (obsolete)
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: totem-browser-maint
totem-browser-maint
: 310053 539480 592633 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-11-16 11:16 UTC by Christian Persch
Modified: 2009-11-16 12:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Christian Persch 2006-11-16 11:16:42 UTC
We should make the browser plugin viewer use the same UA string as the legacy plugin they're emulating.
Comment 1 Bastien Nocera 2006-11-16 11:24:01 UTC
Filed against xine-lib:
http://sourceforge.net/tracker/index.php?func=detail&aid=1597644&group_id=9655&atid=109655

It doesn't allow that right now.
Comment 2 Bastien Nocera 2006-12-18 23:20:44 UTC
Quicktime on MacOS X:
QuickTime/7.1.3 (qtver=7.1.3;cpu=PPC;os=Mac 10.4.8)
Comment 3 Bastien Nocera 2007-01-05 11:42:25 UTC
Would be nice to get more UA strings from the community.
Comment 4 Bastien Nocera 2007-01-11 15:51:47 UTC
Windows Media Player from Windows XP SP 2:
"Windows-Media-Player/10.00.00.4019"
Comment 5 Christian Persch 2009-08-30 19:47:58 UTC
I'm unable to access the sourceforget bug in comment 1, but that shouldn't matter anyway now that totem is gstreamer-only.

Is there gstreamer API to set the UA ?
Comment 6 Philip Withnall 2009-08-30 20:13:47 UTC
*** Bug 592633 has been marked as a duplicate of this bug. ***
Comment 7 Bastien Nocera 2009-09-01 17:17:24 UTC
(In reply to comment #5)
> I'm unable to access the sourceforget bug in comment 1, but that shouldn't
> matter anyway now that totem is gstreamer-only.

Nod.

> Is there gstreamer API to set the UA ?

souphttpsrc has a property for that:
 user-agent          : Value of the User-Agent HTTP request header field
                        flags: readable, writable
                        String. Default: "GStreamer souphttpsrc " Current: "GStreamer souphttpsrc "

We'd need to get signalled when it's used (would it already be too late?), or add a property to playbin to do it for us.

Tim?
Comment 8 Tim-Philipp Müller 2009-09-01 17:31:58 UTC
Not sure what you're asking exactly, but you should probably set the user-agent in playbin_source_notify_cb(), similar to how the device is set there.
Comment 9 Bastien Nocera 2009-09-02 12:18:28 UTC
commit c3a784b72a70b9fae5ef9279faa15ea4dc49933c
Author: Bastien Nocera <hadess@hadess.net>
Date:   Wed Sep 2 13:17:07 2009 +0100

    Bug 375867 - check user-agents
    
    Override the HTTP user-agents for Quicktime and Windows Media Player,
    fixes playback of the Apple trailers.

commit d3180aafb8597a6244a9e98425c721b1a6b0a33c
Author: Bastien Nocera <hadess@hadess.net>
Date:   Wed Sep 2 13:14:17 2009 +0100

    Allow overriding the HTTP user-agent in the video widget
Comment 10 Sebastian Dröge (slomo) 2009-09-09 17:04:09 UTC
*** Bug 310053 has been marked as a duplicate of this bug. ***
Comment 11 Bastien Nocera 2009-11-16 12:00:56 UTC
*** Bug 539480 has been marked as a duplicate of this bug. ***