Re: Site based user-agent

Dean Montgomery <[email protected]> Fri, 11 Sep 2009 09:53:07 -0700 (PDT)
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>
----- "Kevin DeKorte" <[email protected]> wrote:
> 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.

The initial browser request doesn't affect the apple trailers, only the mplayer-plugin request is checked for user-agent.  When I set mplayerplug-in.conf as follows, the apple trailers work:

user-agent=QuickTime/7.6.2 (qtver=7.6.2;os=Windows NT 5.1Service Pack 3)

So if the player itself could be configured to send different user-agent strings on a per domain basis then it will be easy to fix if domains require specific user-agent strings. (e.g. apple.com)
-- 
Dean Montgomery
Network Support Tech./Programmer
[email protected]
School District #73

------------------------------------------------------------------------------
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