WordPress plugin: this.player

This plugin has been passed left and right by better, more flexible solutions. Because of this I will not be updating this plugin any more. That’s also why I haven’t posted it at the wordpress.org plugin repository.

If you’re looking for a good Flash player I’d recommend looking at Flash Video Player which does everything my plugin does, and much more. For a complete video/audio solution, AMP comes to mind.

(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 this.player plugin for WordPress.


  • 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.


  1. Link: Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 8/31
  2. awesome job!
    im glad there’s no .js files required to be placed in the header for this to work. Lets see how it works!

    Comment by sk — August 31, 2007 @ 6:47 am

  3. Link: Nico Nemil | Filipino Web Developer | Pinoy Web Designer | Intermediate Graphics Artist » WordPress Plugin Releases for 8/31
  4. Link: Niklas’ blog » Blog Archive » My Del.icio.us bookmarks created during the past week
  5. Good work but I have a problem with the audio player version. I have to click stop before play to have it work. This happens only for the first time the player is loaded, i.e. refresh the page to see the behaviour again.

    Comment by JP Renaud — August 31, 2007 @ 12:27 pm

  6. Roy:

    Great plugin. I have tried a whole bunch of ’em, this is the one that works the best and does not mess with the quality of my swf file. Thanks.

    If you are taking future requests (!!) then I would love to request a minor feature: addition of time of the video (time left or total time or how much time has passed). This will be great for long videos so people can remember where they left off.

    Thanks again.

    PS: Here is a link to the post where I am using your plugin (the player was blending into the white background so I just put it into a table with a cell color):


    Comment by Avinash Kaushik — September 1, 2007 @ 8:52 am

  7. Link: links for 2007-09-01 « Hip Hop News
  8. Hi great plugin and what i looking for, thanks!
    Can be possible to place tracks in other folders than “uploads” ?
    For example i have my own tracks in http://www.mydomain.it/music/tracks


    Comment by Simone — September 2, 2007 @ 11:36 am

  9. @Simone, currently, you can’t. If you know your way around PHP you can edit the plugin to use a different location. I chose to use WP’s default which is very convenient for the majority of users.

    Comment by Roy — September 2, 2007 @ 3:27 pm

  10. Simone & Roy, I have personally changed the php so that the address you put in the post is the full address (i.e. with the http:// etc…). That way, you can use an audi or video file stored outside of your website. very convenient. JP

    Comment by JP Renaud — September 2, 2007 @ 6:05 pm

  11. I have WordPress installed in subdirectory wordpress. If I use the player as is I get a Stream not Found. If I add /wordpress to the php fie I don’t get the message but nothing happens. I have uploaded both a flash and mp3 file.

    Comment by Bill — September 3, 2007 @ 4:27 pm

  12. I figured it out. WordPress 2.2 puts the files in a subfolder 2007/09 not directly in /uploads. I moved the files to /upload and it works.

    Comment by Bill — September 3, 2007 @ 4:31 pm

  13. @Bill: That is correct. You either need to prepend the right folders, disable the ‘Organize my uploads into month- and year-based folders’ setting under Options > Miscellaneous or upload manually (FTP).

    Comment by Roy — September 3, 2007 @ 8:02 pm

  14. Your player does resize the swf file display to your parameters specifying the window size. It doesn’t however resize the swf frame itself, so it ends up showing only a portion. For example, my swf file is designed for 800×600 display and I am showing in your player as 480×360, but it is only showing the upper 480×360 portion of the 800×600 stage without compressing it. As I recall there are two places that these parameters must be transferred to the flash player.

    Comment by joe — September 5, 2007 @ 6:22 pm

  15. Is there anyway that you can host the file anywhere except your WordPress hosting? and then transfer it somehow?

    Comment by the king — September 7, 2007 @ 4:03 am

  16. @the king: I’m not entirely sure what you mean by ‘transferring’ the files, but if you check earlier comments, JP Renoud has modified the plugin to allow it to be fed full paths. That modification might work for you as well.

    Comment by Roy — September 7, 2007 @ 7:51 am

  17. Hi, this looks like a great plugin. I just installed it, the player shows up fine, but I am not getting any audio. The mp3 file is in the upload folder. I also tried pushing stop then play (as pointed out above). Any suggestions?


    Comment by Ben — September 10, 2007 @ 6:56 am

  18. @Ben: are you sure the mp3 file isn’t in a 2007/09 (or similar) folder within ‘uploads’? That would require something like [mp3]2007/09/file.mp3[/mp3] .

    Comment by Roy — September 10, 2007 @ 7:30 am

  19. Hi Roy, just double checked to make sure and it’s in the upload folder. It’s strange, because the player turns up just fine. I just can’t get any sound.

    Comment by Ben — September 10, 2007 @ 2:33 pm

  20. Thanks for the great plugin. It solved a problem I was having when I set up my wife’s blog. I figured I should let you know of a change I made to my copy to add some features. Here are the details ( http://www.dslreports.com/forum/r19049787- ) but basically, I made the script support a [flv]filename.flv|320|480[/flv] format. It could still be used in a simple form (e.g. [flv]filename.flv[/flv] ) and would use the script-specified figures as default width/heights. However, you could also use it to easily play videos with sizes different from the default.

    Comment by Jason Levine — September 25, 2007 @ 7:47 pm

  21. Link: Jody Sachse - Wandering the Webernet
  22. Link: Must Have WordPress Plugins - Money Making Scoop
  23. Link: WordPress Plugins Database » Plugin Details » this.player
  24. Link: Embedding SWF files using the this.player plugin at GraveYardITGuy
  25. Link: わーどぷれすっ! » プラグインテンプレ
  26. Link: Adding Movies and Mp3 Files To Wordpress | Coffee With Allan Cockerill…
  27. Link: STORY of AODDY. » Test WordPress plugin: this.player
  28. thank you for your player work very nice.

    Comment by djericdesign — March 4, 2008 @ 6:32 am

  29. First off thanks for the plugin, very easy setup but Im having a weird prob which you can see in the link below. Basically I downloaded the flv of a youtube video and embeded both the youtube video and the flv video using your player. On yours though the aspect ratio is wrong. The video is stretched vertically….

    Comment by brimur — March 20, 2008 @ 7:55 pm

  30. Hi Brimur. The dimensions for any FLV video are stored in it’s meta data. My plugin read that and adjusts the display accordingly. Unfortunately, some encoders insert faulty numbers. Even a professional program I worked with mixed up the horizontal and vertical sizes. This is the most probable cause of the problem you’re experiencing.

    There are programs available that let you adjust these figures. Could you check if the meta data says the file is something like 320×240 and report back? You can use a tool like this: http://www.buraks.com/flvmdv/

    Comment by Roy — March 20, 2008 @ 8:50 pm

  31. Thanks for replying Roy. I checked in VLC and I installed the DLL you suggested and both say the FLV file is 320 x 240 pixels. I edited the php script in your plugin to set FLV dimensions to 425 x 375 (same size as youtube video) and also to 320 x 260 as you suggest but it still looks vertically stretched. The FLV itself is available here if you want to have a look yourself http://blog.brimur.com/wp-content/uploads/UtahSaints08.flv

    Comment by brimur — March 21, 2008 @ 11:39 am

  32. QBrimur: Thnks, I downloaded the file and will look into it. On first glance it looks like the meta data in the file is OK, so it must be my fault somehow 🙂

    Comment by Roy — March 21, 2008 @ 2:20 pm

  33. For some reason, my videos continue to loop non-stop. Does anyone know how to stop this? (I am using SWF files)


    Comment by Pagecrew — June 2, 2008 @ 3:03 am

  34. Hi Pagecrew. Did you create the swf yourself? Is it possible there’s a script in there that forces the movie to loop? Some video encoders (like Squeeze) offer this as an option when encoding swf videos.

    Comment by Roy — June 2, 2008 @ 7:25 am

  35. Is there a way to make it so that the file data does not start loading/buffering by default? I have a page on my site that serves as an index of multiple sound files, and each time the page is called, every single sound file starts loading. If I can accomplish this by editing the PHP file, I’m willing to do so.


    Comment by Shawn C — July 2, 2008 @ 1:15 pm

  36. Magnificent work. Thanks.

    Comment by Chris — August 1, 2008 @ 9:07 pm

  37. Hi Roy, Great plugin, finally after so many crap plugs, a simple mp3 player…
    i also join Shawn C to ask if there is anyway that the files wouldn’t load until you actually pressed play…

    Comment by Zokologic — September 9, 2008 @ 10:22 am

  38. Hy,
    It’s possible with a setings change to loop my moovie?

    Comment by Daniel — November 14, 2008 @ 7:06 pm

  39. Hi Roy! The player look sweet! How about using a better embed technique like FlashReplace (http://www.robertnyman.com/2007/04/19/flashreplace-a-light-weight-javascript-to-insert-flash-movies-into-your-web-page/) or SWFObject so that users can skip the annoying ‘Click to activate’ thingy on Flash?

    Comment by Prasannah — November 24, 2008 @ 3:07 am

  40. I want to this style

    Comment by lagooneain — November 24, 2008 @ 2:21 pm

  41. Hi Prasannah. This plugin has been passed left and right by better, more flexible solutions. Because of this I will not be updating this plugin any more. That’s also why I haven’t posted it at the wordpress.org plugin repository.

    If you’re looking for a good Flash player I’d recommend looking at Flash Video Player which does everything my plugin does, and much more. For a complete video/audio solution, AMP comes to mind.

    Comment by Roy — November 25, 2008 @ 11:12 am

  42. I’ve been looking for a player that will embed swf movies and give them stop and play controls.

    NONE I’ve found so far have this… except your plugin. Only problem is the top left of the movie is shown in the bottom right corner.

    Comment by Ryan Paul — January 2, 2009 @ 6:40 am

  43. Link: Wordpressに簡単に動画をアップする方法 - Webマスターの為の情報共有サイト マウンテンブック
  44. bro your plugin didnt work ins wordpress 2.8

    Comment by lol — August 16, 2009 @ 12:33 pm

  45. @lol. That is entirely possible. As stated in the post, this plugin was abandoned by me a long time ago. Better solutions are available on wordpress.org .

    Comment by Roy — August 17, 2009 @ 9:51 am

  46. hi Roy,
    why the player didn’t appeared in my web. Installation done nicely.

    Comment by paney — October 3, 2009 @ 2:56 am

    • Paney: As the article clearly states, this plugin hasn’t been tested in recent versions of WP and has been abandoned. There are plenty of alternatives available. Please try them instead.

      Comment by Roy — October 5, 2009 @ 9:56 am

  47. This plugin works great. However there’s an opaque gray bar at the bottom of my SFW and above the player controls. Is there any way to remove that?

    Comment by David Bell — November 20, 2010 @ 1:22 am

    • David, there probably is. But I urge you to look for alternatives. This was one of the first WordPress plugins I made, and it hasn’t been updated since. It’s a wonder it still works, but it’s been surpassed left and right by better video players.

      Comment by Roy — November 23, 2010 @ 11:40 am

  48. ProPlayer which is a customized version of JW Player is an excellent plugin for flash and html 5

    Comment by Brad Dalton — June 1, 2012 @ 11:01 am

  49. How can i add this on the sidebar or widget ?

    Comment by Jodh — June 17, 2012 @ 10:35 am

    • Quick answer? Don’t use this. It’s old and unsupported. There are many better options available in the WordPress plugins repository.

      Comment by Roy — July 4, 2012 @ 8:23 pm

  50. I mean wht codes i have to use for it

    Comment by Jodh — June 17, 2012 @ 10:36 am