Graffiti Silverlight Video Plug-In

Sunday, March 30 2008

I decided to create a plug-in for graffiti to allow for silverlight videos within graffiti posts. (download here)  This plug-in supports Microsoft's free streaming service as well as just placing the .wmv on your own server.  It is one graffiti.silverlight.video.dll and you just drop it in the bin of your graffiti web site.  Here is how it works:

Drop the graffiti.silverlight.video.dll into your bin and you will then see in your plug-in's location the option to enable or disable the plug.

PlugIn

Once you enable the plug-in it will automatically create 4 custom fields that you will use to configure video in any graffiti post.

customfields

  • Enable Video:  If you check this your post will automatically include all the needed javascript files and XAML to support video in your post.  This keeps every post in graffiti from downloading these files by default and means that it will only embed these files if you've enabled video.
  • Video DIV Style String:  This is used because I noticed that firefox does not like it if within a <div> you have an object tag and that <div> does not have any styling.  If you don't at least put a height on that div it will hide your video
  • Auto Play Video:  If you check this option when someone visits your post the video will start to play automatically
  • Video URL:  This is where your video is located.  This plug supports using Microsoft's free streaming video service as well as hosting the files on your own server.  (I will do a follow-up post explaining the Microsoft Streaming Service)

Now once you've set all your video options to set the placement of the video within your post you just type your post and where ever you want the video placed just put the tag VIDEO

post

Here it is in action: