FLV Embed Modification

I love Yaosan Yeo’s FLV Embed WordPress plugin. In fact, while here on TnH I use a variety of plugins, on my new site it’s exclusively FLV Embed.

Now, the plugin ships with an old version of JWPlayer that doesn’t support subtitles. This is bad because that’s just the feature I needed. So, I updated the player version shipped with the plugin and also added a few more tricks to the otherwise great plugin:

  • You can now specify a default size in the options. If you don’t give a size in the flv tag, it’ll automatically use the ones specified as default.
  • There’s a few more parameter combinations, most notably you can now add subtitles to the parameter list (filename, sub, poster, width, height).

What does this mean? You now have the following possible combinations:

  • (filename) Plays just the filename with the default size, no subs or poster
  • (filename, subs) Plays the filename with the specified subtitles with the default size
  • (filename, subs, poster) Same as above, just with the additional poster
  • (filename, subs, width, height) Same as above but without poster and with custom sizes
  • (filename, subs, poster, width, height) Same as above but with poster.

Yeah, I don’t really need the poster. If you’re interested you can grab the file here. Be advised that you need to download and unpack the player.swf and yt.swf from the new JWplayer to make this work. Also, you need the original plugin.

Published by

Tsukasa

The fool's herald.

Leave a Reply