Monthly Archives: August 2006

An update to the EmbedVideo Plugin

A minor modification, but I have added a “Preview” button to the chooser form.  It should make it easier for you to double check that the video you specified is the one you want.  This button will open up a new browser window to display the appropriate page from whichever provider’s website.  I’ve also decided to take it to release version 1.0 because this is about as far as I’m going to take development (unless someone wants a really cool feature adding – leave a comment if that’s you!).

I have also tidied up the source code for the plugin, thus making it possible for me to release that without being too ashamed of my coding.  I’m not normally as sloppy as when I coded the first pass of the plugin, but I was in kind of a hurry.  It’s all sorted out now, though, and you should be able to get the source from here, or the pre-compiled goodness from here.

IMPORTANT NOTE : If you are going to use the new version and have an older version installed, I advise you to delete the old plugin assembly, called “LiveWriterPlugins.dll”, from the Plugins folder.  If you don’t, there won’t be any major problems, but you will have two copies of the plugin – the old one, and the updated one.  It’s my fault, I know. I should have given the thing a more meaningful name in the first place, but like I said above, I was rushing.

Windows Live Writer Plugin #1 – YouTube Video.

**ANOTHER EDIT** Version 1.0 out now.

**EDIT** version 0.2 now includes support for Google Video

Version 0.1 still available (in case the new mods give you trouble).

Here’s my first ever Plugin for Windows Live Writer.

It requests the ID for a video clip in YouTube (for example, the url of the default video is http://www.youtube.com/watch?v=GtdJFtdXYps so the id from that url is GtdJFtdXYps ).  For Google video, you need to docid number (19 digits) for example : http://video.google.com/videoplay?docid=3573852431733156394&q=kitten would give the docid of 3573852431733156394.

From that scant information, the plugin adds the embedded player for the video into your post.  Simple.

Download the file, and then extract the DLL into the Plugins folder of your WLW installation.  It will then appear in the “Insert” menu on the next restart of WLW.

I know it’s not much, but I thought I’d write it as a quick practice.

Demo :

[youtube=http://www.youtube.com/watch?v=GtdJFtdXYps]

[googlevideo=http://video.google.com/googleplayer.swf?docId=3573852431733156394]

Windows Live Writer

I’ve been pointed in the direction of this tool by a co-worker, so I thought I’d have a look.  It’s always tough to review these blogging tools because you’re working out what you’re doing as you type.

Picking categories for a post is a simple drop down list in the interface, and typing / adding pictures, etc is all WYSIWYG.  No quibbles there.

Th only thing that doesn’t seem to be working as it should is the style detection.  If I understand correctly, it is supposed to be able to pull down your stylesheets, etc, so the WYSIWYG is just that.  Not in my WP install it doesn’t.

Other than that, it seems like a good enough tool.  I’ll explore more later.

**EDIT** Apparently, there is an SDK that you can use to write plugins . Also check out the forum , where you will see the issues others are having.

**EDIT 2** On my other machine, the download of the style information seems to work.  However, there’s an issue with this theme and the editor, so I have to type all the text in a box about an inch wide. :)