Subscribe to the RSS Feed »

Follow me on Twitter »



Find Programming Jobs

Easy Flash video and WordPress

I recently posted about the joys of embedding Flash video using Jeroen Wijering's Flash Video Player. While I originally inserted FLVs on a plain HTM page the integration of FLV video remains super easy with WordPress.

  • Make sure you already have Jeroen Wijering's Flash Video Player installed and working.
  • Download the WP-FLV plugin, install and activate.
  • If you're using the WordPress default rich editor, open /wp-includes/js/tinymce/tiny_mce.js and replace line 101 with:
    this.defParam("extended_valid_elements", "flv[*]");
    (Hat tip to Andreas.)
    If you're using the WYSI-WordPress editor plugin, open the wordpress.js file and add flv[*] to the "extended_valid_elements" configuration.
  • Insert the code to display your video:
    <flv xhref="http://www.yourdomain.com/movie.flv" width="400" height="300" autostart="false" />
  • That's it!

My original source video files are WMV. I'm using Windows Movie Maker to convert to AVI, then the RIVA encoder to convert to FLV.

Share this: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Sphinn
  • StumbleUpon
  • TwitThis
  • del.icio.us
  • bodytext
  • Technorati
  • Pownce
  • description

2 Responses to “Easy Flash video and WordPress”

  1. petitefleur Says:

    Hi, I tried what you did replacing line 101 but still having an error. The player appear but the video don't :-( If you can help. I'll appreciate. You can have a look on the website where I set up this plugin www.danielkunzi.ch but let me know so I can open it 4 you. Many thks for your help in advance.

  2. Sam Stevens Says:

    Sorry it didn't work right away for you! After installing the WP-FLV plugin, did you visit Options > WP-FLV to configure its paths? I forgot to do that on a recent installation and that was exactly what caused a blank screen. Hope that helps, but if not, feel free to post back!

Leave a Reply