Closed Bug 290554 Opened 20 years ago Closed 20 years ago

Windows Media Player 10 cannot be used in Firefox .

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 264645

People

(Reporter: bigdaddy_1414, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Whenever I want to see a video through Windows Media Player 10 through Firefox
it tells me i do not have series 9 installed. I have WMP 10 installed, it's
newer than series 9 so this shouldn't be a problem. Even if i re-install WMP 10
it fixes nothing, it still won't let me play video through windows media player
in the browser. This is a time when I have to resort to IE so lets fix this.

Reproducible: Always

Steps to Reproduce:
1. go to a video on the internet that needs windows media player
2. have WMP 10 installed

Actual Results:  
Nothing, thats the problem.

Expected Results:  
Played the video like in IE.
- make sure you have only 1 single version of WMP installed and that it is the
latest: go to http://plugindoc.mozdev.org/windows.html#WMP to get the latest
- read these 2 articles:
Full Step-By-Step Guide: Embedded Windows Media in Firefox 1.0-1.0.2 
http://forums.mozillazine.org/viewtopic.php?t=206213

Windows Media Player (Wiki Mozillazine knowledge base article):
http://kb.mozillazine.org/Windows_Media_Player

The web author javascript code is very long, complex, redundant, not tidy and
bloated as far as I'm concerned.

var hasVersion9 = false;
(...)
else if (window.GeckoActiveXObject)
{
//create the player
player = new GeckoActiveXObject("WMPlayer.OCX.7");
}
(...)
//check the player version
if (player != null && 
player.versionInfo != null)

Question: if new GeckoActiveXObject("WMPlayer.OCX.7") succeeds, will player have
a versionInfo member with WMP 10? If no, then the code wrongly branches.

{
minorVersion = parseInt(player.versionInfo.split(".")[1]);
majorVersion = parseInt(player.versionInfo.split(".")[0]);

if (majorVersion >= 9 && minorVersion >= 0)

What if the player has no minorVersion member?, then minorVersion will be
"undefined" and the code branching will fail.

{
hasVersion9 = true;
}
(...)


He also elsewhere relies on browser user agent string detection to determine
browser:
function isPlayer9()
{ 
  return ((this.getMajorVersion() >= 9) || 
           this.getMajorVersion() == "unknown" && 
           this.getBrowser() == "Netscape" && 
           this.isNSPluginInstalled());
}

(...)

var classid = "6BF52A52-394A-11d3-B153-00C04F79FAA6";

Rob, I checked his code for over 30 min. and he does a better job of detecting
Netscape 7 (although again with user agent string detection which is generally
bad) and WMP 10 is loading and playing the B. Larsen song with NS 7.1 and NS 7.2. 
I get this also using  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050416 Firefox/1.0+ .
Summary: Windows Media 10 cannot be used in Firefox. → Windows Media 10 cannot be used in Firefox on some pages.
Version: unspecified → Trunk
Summary: Windows Media 10 cannot be used in Firefox on some pages. → Windows Media 10 cannot be used in Firefox .
Related to/duplicate of Bug 264645, bug 268865 or bug 274153?
Severity: major → critical
Summary: Windows Media 10 cannot be used in Firefox . → Windows Media Player 10 cannot be used in Firefox .
I'm getting this following error : Netscape browser does not have "Microsoft
Windwos Media Services" plug-ins installed.

What do we do ?

*** This bug has been marked as a duplicate of 264645 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.