Re: Site based user-agent

Kevin DeKorte <[email protected]> Fri, 11 Sep 2009 09:53:25 -0600
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/11/2009 08:23 AM, Dean Montgomery wrote:
> Apple Quicktime trailers now require a special user-agent string.  Would it be possible to allow for site-based user-agent strings in the conf file?
> 
> e.g.
> ===
> # default user-agent
> user-agent=NSPlayer
> # site specific user-agent
> user-agent:apple.com=QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)
> ===
> 
> This way if sites require specific user-agent strings for Quicktime Player or WMP or RealPlayer; then the mplayerplug-in can mimic user-agent on a per-site basis.
> 
> 


Dean,

I'm not sure that this would solve the problem completely as you have
the initial request (prior to the streamed data) to deal with as well.
In svn of gecko-mediaplayer I have solved the problem for the apple.com
site by changing the user-agent in firefox when the QT version of the
plugin is loaded. I have also had to work around this in gnome-mplayer
as well.

Kevin

- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkqqcnUACgkQ6w2kMH0L1dFmTwCeJVK+Vgh7M8Pq8K90be4JA0uT
c1MAnil0MvcI0wq6iaLG2cOdnuiFsKpz
=EgoI
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july