Using the Windows Media Player Plugin

Firstly, from IRC it appears that newer versions of WMP no longer include the Netscape plugin. The stuff here seems to be just the plugin files – should come in handy. Thanks to… err, whoever told me about it on IRC. (Sorry)

Second, hacking the WMP plugin to handle types it doesn’t want to admit it can handle:

  1. First, make a copy of npdsplay.dll somewhere that gets scanned. The source is in C:\Program Files\Windows Media Player by default, I think. I like to copy to %appdata%\Mozilla\plugins since that sticks around across installs (and dist/bin folders in clobber builds, whatever) and gets picked up by all Mozilly browser thingies. Hack the copy so nothing happens to the real plugin ;).
  2. Grab resource hacker (or Visual Studio / MSDev / whatever). Look at the Version Info section. The interesting items are…
    • FileExtents is a pipe-separated list of file extensions. Not sure if it’s all that relevant… :p
    • FileOpenName seems to be a pipe-delimited list of descriptions to show in File -> Open dialog boxes. Not sure who uses plugins that way.
    • MIMEType is the key – it’s a pipe-delimited list of MIME types to accept.
    • See devedge for more interesting info.
  3. So, edit the lists (try to keep the three in synch, since they’re the columns in about:plugins I think).
  4. Save, and kill pluginreg.dat (in %appdata%\Mozilla\Firefox).
  5. Marvel at the new updated about:plugins

Hopefully this will help someone.

Advertisements

5 Responses to “Using the Windows Media Player Plugin”

  1. ibnor Says:

    *is on a mac*

  2. mook Says:

    Well, yeah, then you’d need to figure out how NPAPI does it on Macs 🙂 http://devedge-temp.mozilla.org/library/manuals/2002/plugin/1.0/develop.html#1007802 might help there.

  3. Daniel Says:

    Looks as though it’s going to take me a long while to learn this. I don’t know the first thing about hacking DLLs.

    Thanks alot for the help! 🙂

  4. Daniel Says:

    WOW it was much easier than I thought it’d be! Thanks so much for this! 😀

  5. mook Says:

    There’s an updated WMP plugin:
    http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx

    It scripts (using npruntime, yay!) like the newer versions in IE. In general, it’s Better 😀

    In general, keep track using http://kb.mozillazine.org/Windows_Media_Player

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: