A Load of Cobblers

Social software services and open source tools have transformed us into a load of cobblers.

Here's where I share the tools I use and how I cobble them together.

-- Steph

WP-FLV: flash video in Wordpress

I was looking for a nice way to embed videos for an internal Wordpress blog. So hosting videos on YouTube wasn’t an option.

Screenshot of WP-FLV in use

The WP-FLV plug-in is a single file plug-in for Wordpress which lets you add a <flv> tag into your posts referencing the video you want to embed. This then calls the JW Flash Media Player and presents a nice embedded player.

Tip: Wordpress is pretty strict about stripping out what it sees as dodgy code from the WYSIWYG editor. So if you want to allow the page/post to remain editable but don’t want to have the suspicious-looking <flv> element stripped out, change the following line in wp-flv.php:

preg_match_all (‘!<flv([^>]*)[ ]*[/]*>!i’, $content, $matches);

to:

preg_match_all (‘!\[flv([^>]*)[ ]*[/]*\]!i’, $content, $matches);

and instead of:

<flv href=’link/to/vid.flv’ autostart=’true’ />

use the following snippet in your post:

[flv href=’link/to/vid.flv’ autostart=’true’ /]

Comments (View)
blog comments powered by Disqus