Windows Media Player: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(→‎Firefox 1.5.0.5: link to bug report)
No edit summary
Line 8: Line 8:
A version of WMP is included with most Windows installations and the WMP plugin files that are needed for certain web page content are normally included.  In some cases, however, the plugin files may be missing. To check for the WMP plugin, type [[about:plugins]] into the [[:Category:Location Bar | location bar]]. If there are entries for the files <tt>npdsplay.dll</tt>, <tt>npdrmv2.dll</tt> and <tt>npwmsdrm.dll</tt> then the WMP plugin is fully installed.  If you do not see these files, follow these steps:
A version of WMP is included with most Windows installations and the WMP plugin files that are needed for certain web page content are normally included.  In some cases, however, the plugin files may be missing. To check for the WMP plugin, type [[about:plugins]] into the [[:Category:Location Bar | location bar]]. If there are entries for the files <tt>npdsplay.dll</tt>, <tt>npdrmv2.dll</tt> and <tt>npwmsdrm.dll</tt> then the WMP plugin is fully installed.  If you do not see these files, follow these steps:
*If some or all of the files are missing, you can download the individual files from [http://www.dlldump.com/ dlldump.com] and place them in the Windows Media Player directory (usually C:\Program Files\Windows Media Player):
*If some or all of the files are missing, you can download the individual files from [http://www.dlldump.com/ dlldump.com] and place them in the Windows Media Player directory (usually C:\Program Files\Windows Media Player):
** npdsplay.dll: http://www.dlldump.com/dllfiles/N/npdsplay.dll  
** npdsplay.dll: http://www.dlldump.com/download-dll-files_new.php/dllfiles/N/npdsplay.dll/3.0.2.629/
** npwmsdrm.dll: http://www.dlldump.com/dllfiles/N/npwmsdrm.dll
** npwmsdrm.dll: http://www.dlldump.com/download-dll-files_new.php/dllfiles/N/npwmsdrm.dll/9.00.00.3250/
** npdrmv2.dll: http://www.dlldump.com/dllfiles/N/npdrmv2.dll
** npdrmv2.dll: http://www.dlldump.com/download-dll-files_new.php/dllfiles/N/npdrmv2.dll/9.00.00.32508/
*If the problem is not resolved,  installing the Windows Media Player Plug-in for Netscape Navigator (available [http://www.microsoft.com/windows/windowsmedia/player/version64/plugin.aspx here]) should work [http://forums.mozillazine.org/viewtopic.php?p=2374935#2374935] but the included files are older versions.  After running the installer, copy the more recent versions of <tt>npdsplay.dll</tt>, <tt>npdrmv2.dll</tt> and <tt>npwmsdrm.dll</tt>  from [http://www.dlldump.com/ dlldump.com] to the the Windows Media Player directory, if they were replaced by older versions.
*If the problem is not resolved,  installing the Windows Media Player Plug-in for Netscape Navigator (available [http://www.microsoft.com/windows/windowsmedia/player/version64/plugin.aspx here]) should work [http://forums.mozillazine.org/viewtopic.php?p=2374935#2374935] but the included files are older versions.  After running the installer, copy the more recent versions of <tt>npdsplay.dll</tt>, <tt>npdrmv2.dll</tt> and <tt>npwmsdrm.dll</tt>  from [http://www.dlldump.com/ dlldump.com] to the the Windows Media Player directory, if they were replaced by older versions.
On most systems, Firefox and Mozilla Suite will detect the Windows Media Player plugin files via [[plugin scanning]] if you follow the above steps.  However, there are cases where this may fail [https://bugzilla.mozilla.org/show_bug.cgi?id=66015].  If the problem is still not resolved:
On most systems, Firefox and Mozilla Suite will detect the Windows Media Player plugin files via [[plugin scanning]] if you follow the above steps.  However, there are cases where this may fail [https://bugzilla.mozilla.org/show_bug.cgi?id=66015].  If the problem is still not resolved:

Revision as of 00:24, 25 December 2006

Some websites require the use of the Windows Media Player (WMP) for certain content such as embedded audio and video. This article describes how to get the WMP plugin working with Firefox or Mozilla Suite on Windows along with instructions for installing the ActiveX plugin for Mozilla and Firefox.

Windows Media Player plugin

Security alert

Microsoft issued a security bulletin on Feb 14 2006 regarding a vulnerability in the Windows Media Player plugin on Windows 2000 and Windows XP systems that could result in remote code execution when using non-Microsoft web browsers. Affected users should install the "Security Update for Windows Media Player Plug-in (KB911564)" available from Windows Update. This will update the WMP plugin file npdsplay.dll to version 3.0.2.629.

Missing plugin

A version of WMP is included with most Windows installations and the WMP plugin files that are needed for certain web page content are normally included. In some cases, however, the plugin files may be missing. To check for the WMP plugin, type about:plugins into the location bar. If there are entries for the files npdsplay.dll, npdrmv2.dll and npwmsdrm.dll then the WMP plugin is fully installed. If you do not see these files, follow these steps:

On most systems, Firefox and Mozilla Suite will detect the Windows Media Player plugin files via plugin scanning if you follow the above steps. However, there are cases where this may fail [2]. If the problem is still not resolved:

  • As a last resort, copy the files npdsplay.dll, npdrmv2.dll and npwmsdrm.dll to the Firefox or Mozilla Suite installation directory plugins folder, for example, to the C:\Program Files\Mozilla Firefox\plugins folder.

Testing WMP plugin

You can test the WMP plugin using these test pages:

Troubleshooting WMP plugin

Video is invisible or disappears when you click a control

  • When the player is active, right-click on it and select 'Options...'
  • At the bottom of the window should be a 'Video Acceleration' option. Change it from full to half by moving the slider.

Firefox crashes on exit if the WMP plugin has been used (Windows 2000)

  • Double-click on the 'My Computer' icon on the desktop, then double-click on 'Control Panel'.
  • Double-click on the Java icon to bring up the Java control panel.
  • Click on the 'Update' tab, and then the 'Update Now' button.

WMP6 used even though 9 or 10 is installed

If the player controls look like they are from an older version of Windows Media Player:

  • Right-click this link and save it to your desktop: http://plugindoc.mozdev.org/resources/wmp9.reg
  • When it has downloaded, double-click it. A pop-up will ask if you want to add the information in it to the registry - click Yes.
  • If the registry patch doesn't help, it has been reported that reinstalling Windows Media Player 10 will work.
  • The WMP plugin is the same whether you use WMP 6.4 or WMP 9 - this registry patch basically allows Firefox to apply the modern WMP look onto the plugin.

"Cannot create DirectShow Player"

This could be a symptom of this problem. Failing that, try reinstalling WMP and installing the latest version of DirectX. Windows XP users with WMP 9 can try upgrading to WMP 10, and WMP 10 users can also try rolling back to WMP 9. Booting Windows in Safe Mode, deleting WMP, then reinstalling WMP may solve it.

Nothing happens when pressing Play

The players in the test links here have the status bar - it tells you what the player is doing. This is not always the case. Sometimes when you hit play on a player without a status bar, it seems like nothing happens - in fact, the player is probably just downloading enough of the file to start playing it (buffering) and if you give it a moment, it will start.

Illegal operation in Windows Media Player plugin

Illegal Operation in Plugin
Windows Media Player Plug-in Dynamic Link Library
The plugin performed an illegal operation. You are strongly advised to restart Navigator.

This can be caused by having JavaScript disabled. To enable JavaScript:

  • Firefox: Click "Tools → Options → Content (or Web Features) → Enable JavaScript".
  • Mozilla Suite: Click "Edit → Preferences → Advanced → Scripts & Plug-ins → Enable JavaScript for → Navigator"

Make sure that any extensions you might have that can block JavaScript are not blocking the site in question or are disabled. These include NoScript[3] and Adblock Plus.

Window XP Home N or Windows XP Professional N

Because of a recent decision by the European Commission, Microsoft have been required to offer these new European versions of Windows XP Home/Pro in addition to the standard verisons, with Windows Media Player and all built-in media playback abilities removed - including the Windows Media Player plugin. The N stands for 'Not with Windows Media Player'. Because of the scope of the changes, you cannot simply install Windows Media Player to get full functionality back. Microsoft have released an update to convert Windows XP N to regular Windows XP (by restoring all the missing files). Users of Windows XP Home/Pro N will need to install this update to run the Windows Media Player plugin. This update is also avaliable on Windows Update. This cannot be undone. After installing this update, the only way to revert back to Windows XP N will be to re-install Windows.

Player appears, player status bar says 'Ready', no error messages, but nothing happens when you click Play

Internet Explorer needs to be able to connect to the internet for the Windows Media Player plugin to work:

  • Make sure that Internet Explorer is not set to Work Offline mode: To check if IE is in 'Work Offline' mode, open IE and open the File menu. There would be a tick by the 'Work Offline' option. Click it to take IE off Work Offline mode.
  • Make sure that Internet Explorer's proxy settings are correct
  • Make sure that IE and WMP are not blocked by your firewall.

This can also be caused by DSL/cable providers using Network Address Translation (NAT) not forwarding UDP packets properly. The solution is to disable UDP in Windows Media Player:

  • In WMP, click Tools > Options
  • Select the 'Network' tab
  • Deselect 'UDP'

It has also been reported that reinstalling/upgrading/downgrading Windows Media Player can solve this.

Crashes or missing WMP controls while trying to play embedded WMV files

Your browser may crash or, if the video does play, the WMP controls (play/pause/stop) or right-click options may be missing [4]. This can happen when the VLC Media Player is installed and its own browser plug-in takes precedence over the WMP plug-in, causing a conflict. Remove the VLC plug-in file npvlc.dll from the Mozilla Suite or Firefox installation directory plugins folder so that embedded WMV files can play properly.

Player does not appear, but audio (sometimes) still plays - all plugin files are listed in about:plugins

If the Adblock extension is installed, the OBJ-TABS setting may hide the WMP plug-in. If you find this happens to you, disable Obj-Tabs in your Adblock options. If that doesn't work, try redownloading the plugin files from dlldump.com as described in the previous section and placing them in your browser's plugins folder. The VLC Media Player plug-in has also been known to do this - try removing the VLC plug-in (see above).

Another problem where file may play audio but the video will play only on the Primary monitor even though both would otherwise have the same view. (Windows control panel, Display, Advanced, Displays)

Firefox 1.5.0.5

Firefox 1.5.0.5 has a bug that interferes with the Windows Media Player plug-in (fixed in Firefox 1.5.0.6).

Windows XP Media Centre Edition

Windows XP Media Centre Edition does not come with the Windows Media Player plug-ins. In addition, often it appears incapable of supporting them so just restoring the dll files may not work, and the installer for the plug-ins does not recognise XP Media Centre Edition. It has been reported that the update for Windows XP N (XP with no media playback ability, see Window XP Home N or Windows XP Professional N) that re-adds the missing media playback files will allow XP Media Centre Edition to support the WMP plug-ins.
Warning: this update cannot be uninstalled. The only way to undo it is to re-install Windows, so attempt at your own risk. The update is here.

ActiveX plugin

Some sites may be coded specifically for the WMP ActiveX control, an Internet Explorer plug-in technology that does not normally run on Mozilla Suite or Firefox. The Mozilla ActiveX Plugin by Adam Lock adds ActiveX support to Mozilla Suite and Firefox.

Warnings:

  • If you use the Adblock extension, you need to disable the Obj-Tabs setting. Otherwise, the ActiveX plugin will run almost any ActiveX control regardless of how it is configured. Potential fixes are being discussed in Bug 340852 and may be included in furture Mozilla browser releases.
  • For some versions of the ActiveX plugin, the Flash plugin will not load unless it was already loaded after you install the ActiveX plugin. You will need to reload the plugins by typing about:plugins into your Location Bar upon starting Firefox.
  • If you later update your browser, the ActiveX plugin will likely remain installed and it may not be compatible with the new browser version. You should uninstall the ActiveX plugin before upgrading your browser, unless it is known to work with the next version.

Security Info

ActiveX support is considered to be one of Internet Explorer's larger security flaws. This is because IE can automatically download, install and run ActiveX controls without informing the user. ActiveX controls, unlike plug-ins, have all the same permissions as any Windows program so they have full access to Windows, giving a virus disguised as an ActiveX control a lot of damaging power. The ActiveX plugins are capable of downloading and running any control[5], but the Firefox versions come preconfigured not to download controls, and to only use the Windows Media Player controls - bypassing the security issues. The ActiveX plugins for Mozilla Suite do not - they will download missing controls.

Installing ActiveX plugin

The ActiveX plugin can be downloaded and installed from this page.

Firefox 1.5.x.x and Firefox 1.0.x releases

Important: Each version of the ActiveX plugin is only compatible with a small number of browser versions. If installed in an incompatible browser, the ActiveX plugin will not function properly and you may experience conflicts with the Flash plugin.

  • Firefox 1.0.8: Install the plug-in for Firefox 1.0.7.
  • Firefox 1.5 to 1.5.0.8: Install the plug-in for Firefox 1.5.
  • All other releases: Install the plug-in for your specific version of Firefox.

After installation, restart Firefox.

SeaMonkey 1.0 release

SeaMonkey 1.0 users can install the Firefox 1.5 version of the plugin, which seems to work [6].

Mozilla Suite and other Firefox builds

  • Install the Mozilla ActiveX Plug-in and then exit the browser.
  • Download the browser.xpi file from Netscape's ftp site. Do not click on the link. Instead, right-click it and select "Save Link As..." Rename it to browser.zip, open the ZIP file, and extract the npmozax.dll file to the plugins folder of your Mozilla Suite or Firefox Installation directory. The file will be located within the ZIP file under the ZIP's plugin folder. [7]
  • It it also recommended that you edit activex.js and replace it with the text below to enable only Windows Media Player to run unless you need to run other ActiveX controls. The activex.js file is located in your installation directory \defaults\pref folder.
pref("general.useragent.vendorComment", "ax");
pref("security.xpconnect.activex.global.hosting_flags", 9);
pref("security.classID.allowByDefault", false);
pref("capability.policy.default.ClassID.CID6BF52A52-394A-11D3-B153-00C04F79FAA6", "AllAccess");
pref("capability.policy.default.ClassID.CID22D6F312-B0F6-11D0-94AB-0080C74C7E95", "AllAccess");

Testing ActiveX plugin

Once you have installed WMP and ActiveX, you can test it on this site. If you can play both the audio and video players, the ActiveX plugin is installed and working.

Uninstalling ActiveX plugin

  • Close all instances of your browser.
  • Go to the installation directory.
  • Go into the plugins folder and delete the file npmozax.dll.
  • Go back to the installation folder, and then go into the components folder, and delete the files nsIMozAxPlugin.xpt and nsAxSecurityPolicy.js.
  • Go back to the installation folder, and then go into the \defaults\pref folder and delete the file activex.js.

See also

External Links