Windows Media Embedding Plugin
T-Mobile recently started converting my mobile videos to WMV (without consulting me, I might add). This prompted me to create a WordPress plugin to allow me to easily post those videos to this blog. The plugin is based on my seemingly useful QuickTime Embedding Plugin.
To install, download and extract the zip file. Upload the two files to your WordPress plugins folder (not including the directory). Once it is there, you can activate it from the WP administration pages.
After it is installed, you can us the following syntax to embed a Windows Media movie in a post:
[WINDOWSMEDIA http://www.xxxx.com/movie.wmv 320 257]
Always start with a bracket “[" followed by "WINDOWSMEDIA" then the path to the file, the width and the height. End with a closing bracket "]“.
Also implemented the ability to specify whether or not the video should auto start/autoplay and/or have a controller. To use these two options you would form the tag as follows:
[WINDOWSMEDIA http://x.com/movie.wmv 320 257 true false]
The first “true” or “false” value is whether or not it should auto play and the second is whether or not a controller should be visible.
If you like this script or are having problems with it, let me know, leave a comment below. It should be noted that I really haven’t had a chance to test this on a variety of browsers/operating systems so it probably does have some issues.
Last, if you are looking for a similar solution that will work with Flash and Windows Media as well as QuickTime and not only WordPress but Blogger and other places, check out Enric’s videos Playing In Place