feedback
Feb 4 2008

BlogEngine.NET Extension: Flash Video Player

by John Dyer

Last week, I posted a flash video using flvplayer extension from betaparticle for BlogEngine.NET. I wanted to make some adjustments to the extension and I ended up completely rewriting it.

Updates/improvements:

  • Plays FLV or MP4.
  • All properties are available in the BlogEngine.NET extension manager so you don't have to touch the code to change settings.
  • The size of the player will automatically make room for the controls at the bottom (20px)
  • Uses SWFObject for flash replacement. This allow graceful degradation for those without Flash including mobile users. (I'll upgrade it to SWFObject 2.0 when it's released)
  • Enables Fullscreen playback.
  • Shows an initial image at startup named the same as the flv (myvideo.flv and myvideo.jpg). This way the video is not black at startup.
  • Optionally, instead of SWFObject, full <object><embed> formatting can be used.

Credits

Uses

Installation & Usage

  1. Download the file and unzip: Flash Video Player extension for BlogEngine.NET
  2. Copy FlashVideoPlayer.cs to /App_Code/Extensions/
  3. Copy the flashvideo folder to the root of your application (this can be customized in the settings)
  4. Add videos (myvideo.flv or myvideo.mp4) and images (myvideo.jpg) to the flashvideo folder.
  5. To use, just add [flv:myvideo.flv] anywhere in your post.

Example

oregon
This video requires Adobe Flash player

Download:

Comments

Klaus Graefensteiner February 12. 2008 17:11

Hi John,

I was hoping to give your FLV Video Player extension a ride, but the download link is broken. Great web design by the way.

Klaus

Klaus Graefensteiner
John Dyer February 12. 2008 18:46

Klaus,
Thanks for catching that. It's fixed now...
John Dyer's last post: Purple CMS - Super Early Alpha (0.1)

John Dyer
Thomas Derenthal February 25. 2008 09:34

I did everything exactly per the instructions and here's what renders:[flv:test.flv]. No video, no nothing. Just the literal text.

I have a flv file called test in the flv directory

Thomas Derenthal
John Dyer February 25. 2008 10:32

Thomas, the main thing you need to be sure of is that the FlashVideoPlayer.cs file is your BlogRoot/App_Code/Extensions folder and that it shows up when you go to BlogRoot/admin/Extension%20Manager/Default.aspx

If it's not showing up there in the list of extensions, then the *.cs file might not be in the right place.
John Dyer's last post: Purple CMS - Super Early Alpha (0.1)

John Dyer
Trevor June 27. 2008 14:24

John,

I have followed you instructions yet the [flv:oregon.flv] sample still shows up as text in the post.  For what it is worth, the example you list above looks the same.  I am using the latest BlogEngine available.  Any Ideas what I might be doing wrong?  Thank you for your effort!

Trevor

Trevor
Rick July 23. 2008 13:58

Having same issue as all else.  just shows [flv:oregon.flv] at render.  I am 100% positive that all items (.cs) is int the right place. using 1.4  Any suggestions?

Rick
John Dyer July 23. 2008 14:22

Whoops, it looks like there was a bug in the last update. The line that reads:

e.Location != ServingLocation.SinglePost
should in fact be
e.Location == ServingLocation.SinglePost

Swap that and you'll be good.
John Dyer's last post: Purple CMS - Super Early Alpha (0.1)

John Dyer
Rick July 23. 2008 22:42

i seem to be having an extension issue altogether

Rick
Rick July 23. 2008 23:44

John,

I hate to be a bother but I can not seem to get extensions to work at all on my site.  I have blogengine installed 2 other times in different sub-directories and everything works perfect. However, this time I can not get any extension to work???? Any ideas???

Rick
artvin August 11. 2008 09:09

Good extensions thanks.

artvin
Alojaweb October 24. 2008 01:57

good extension, thanks i need

Alojaweb
Allwyn November 10. 2008 07:34

Very nice extension and easy to implement

Allwyn
r December 15. 2008 09:57

Thanks, this is pretty cool. Finally forced me to update from 1.2 as well (adding FlashVideoPlayer.cs to the extensions folder will crash this version).

r
Sarah McCaffery December 17. 2008 14:09

Great extension! Thanks!

Sarah McCaffery
Johnny March 18. 2009 11:50

does this work with the latest version of blogengine? Can it play swf files too?  thanks

Johnny
John Dyer March 18. 2009 11:55

Yes, it should work with all versions of BE.NET. But, not it will not play swf files. It is an SWF file that plays FLVs and MP4s.
John Dyer's last post: Purple CMS - Super Early Alpha (0.1)

John Dyer
Comments are closed
Web Statistics