The other day I ran across an incredible video on Vimeo (will share video in an upcoming post…don’t want to spoil it!) In doing so, I realized that I needed to post it on my blog…since I’d already written a YouTube Extension / Plug-In for BlogEngine.NET, I decided to modify this to work for Vimeo and publish it as well. Enjoy!
Yet again, I should give some credit to Sean Blakemore’s Silverlight Extension, since that is what I based my YouTube Extension on.
UPDATE 01.13.2011: Version 1.1 Released. Fixes compatibility issues with BlogEngine.NET 2.0. Should now work just fine!
Version history at end of this post.
So, installation is quite easy:
- Take this ZIP file – Vimeo Player 1.1 – BlogEngine Extension – and extract the VimeoPlayer.cs file into your /App_Code/Extensions folder within the root of your BlogEngine installation.
- Log into the “Extensions” portion of your admin panel, you should see the VimeoPlayer extension.
- Click the Edit link to change settings. NOTE: You do not need to modify these settings if you don’t want, you can skip to step 4.
- Width and Height are set to the default Vimeo size, but I actually run mine at a larger setting of 600 x 338.
- Make sure you keep this “aspect ratio” of 400 x 225. Meaning, the default ratio of 400 / 225 = 1.7778. My new ratio of 600 / 338 = 1.775 (pretty close). This will assure that you display wide-screen format in case the Vimeo video you imbed is Hi-Definition content.
- Create a new entry and add this code to your blog to insert a Vimeo video: [ vimeo:YourVideoCodeGoesHere ] (without the spaces).
- Note that the “YourVideoCodeGoesHere” part is typically random numbers. You can see them in the URL of your Vimeo video.
Below is an example of a Standard-Definition (SD) video, as well as a High-Definition (HD) video.
That being said, the code entered for these two videos are [ vimeo:1098984 ] and [ vimeo:1674177 ](minus the spaces)
The SD video looks like this:
The HD video looks like this:
Vimeo Player 1.1 – BlogEngine Extension
Fix: Compatibility issues with BlogEngine.NET 2.0 resolved.
Version 1.0, first release
Vimeo Player 1.0 – BlogEngine Extension