(example video removed)
I’ve never gotten around to releasing the Flash player plugin I wrote a couple of months ago. It’s basically a small player written in Flash that I’ve been working on for some time now wrapped in a Flash plugin. It allows you to use simple tags to embed FLV, SWF (click here for limitations) and MP3 files into WordPress posts.
The output is valid xhtml and works on all current browsers. The actual player, a tiny flash movie, is only 3 KB in size. It’s designed to work well on pages with a white background, where it integrates seamlessly.
- Download the zip file and unpack the files inside.
- Upload the thisplayer folder to the wp-content/plugins folder on your server.
- Activate the plugin on WordPress’s ‘plugins’ tab.
To embed a movie or audioclip using the plugin, follow these steps:
- Upload the file you want to display to your wp-content/uploads folder.
- Use [xxx]filename[/xxx] to embed it anywhere in your post. replace the ‘xxx’ bit with either ‘flv‘, ‘swf‘ or ‘mp3‘ depending on the type of file you’re embedding.
- Save and publish the post.
- If you uploaded your media file to a subfolder of uploads, use [xxx]foldername/filename[/xxx].
To change the display resolution or enable autostart:
- Open thisplayer/thisplayer.php in a text editor (I use Notepad++)
- The $players array holds the player presets. It’s pretty self-explanatory. Edit the widths and heights to suit your needs.
- Replace these numbers with your preferred display dimensions. The control bar underneath the video is 20 pixels high, so if you’re planning to use 320*240 pixel video’s set the player dimensions to 320*260.
- Save and (re)upload the file.