Enclosure Support in BlogEngine.net

12. February 2008 23:12 by rtur.net in BlogEngine  //  Tags: , , ,   //   Comments (9)

Enclosure support has been added to the latest BlogEngine.Net code base. Enclosure is a tag added to your RSS feed that let you publish podcasts on your blog. RSS readers like iTunes and others recognize this tag and let users subscribe to the media files you published. Here is how it works.

1. Download and install latest Mp3player. It has a slight change - on RSS feed serving, it writes link to mp3 file to the post. You only need to replace extension file itself (mp3player.cs), no other files have been changed.

2. Go to Admin/Settings. You’ll see two new entries in the Feed Settings section: enable enclosures and media storage location. Check “enable enclosures” box. Type in the path to the folder where you store your media files (“audio”). Save changes.

3. Create a post and add audio file to it as described on the mp3player page. You should see player added to the post like this:

That’s it! Now go to your favorite RSS reader and subscribe to your own podcast.

Oh, and if you are using FeedBurner - you all covered. It will pick up your feed just fine.

Want to see how it works? Subscribe to my test podcast: http://feeds.feedburner.com/thetestpodcast

Comments (9) -

John Dyer
John Dyer
2/13/2008 3:31:26 PM #

This could also be done for MP4 files on a video podcast. My Flash video player extensions supports MP4s and I just added the same syndication link functionality as you did to the MP3 player. The only problem is that you would need to specify a "media" folder (instead of just "audio") in the syndication settings for both audio and video to make this really work. Also, there probably ought to be a common store for the SWF and JS files. What do you think?

rtur.net
rtur.net
2/13/2008 4:06:35 PM #

It will work with any format that supports podcasting, all you need to do is generate link to you "media" file on feed serving. I will do another post about this function explaining how to use it.
I think BE needs to handle multiple folders - for example allow to enter multiple comma delimited values in the media storage location box. And I also will make folder location in mp3player extension as a property on the settings page, so you can put files wherever you want.

rtur.net
rtur.net
2/13/2008 11:51:15 PM #

I think BE needs to handle multiple folders...
or better - get rid of location box all together and process media links regardless.

rick
rick
2/18/2008 10:48:14 PM #

I am not seeing the two new entries in the feed settings????

rtur.net
rtur.net
2/18/2008 10:55:37 PM #

I am not seeing the two new entries in the feed settings????
The latest (9646) build only has one - media location gone as BE will take care of any location under application root. So you only need to check "enable enclosure" to make it generate enclosure for any media link (see my latest post for details). This all works only in latest two builds, 1.3 does not have it.

SelArom
SelArom
3/21/2008 1:30:06 AM #

Hi, I was using your extension but I needed something a little more custom for my needs so I modified the blogengine core using your extension as a guide. If you're interested check it out here: http://www.selarom.com/post/2008/03/18/BlogEngine-Attachments.aspx

not sure if anybody would find it useful so I haven't published anything yet except of course to use it on my site. in addition it's not anywhere near 100% but I thought I'd thank you for giving me a starting point!

rtur.net
rtur.net
3/22/2008 6:19:32 AM #

Hi, I was using your extension but I needed something a little more custom for my needs...
Very interesting. I was thinking about improving extension to handle multiple files, but it is not exactly what you doing there. I'll take a closer look when I have time, thanks for sharing this.

Alojaweb
Alojaweb
10/24/2008 1:02:54 AM #

good extension, thank you for sharing your knowledge

Darryl Burling
Darryl Burling
11/12/2008 3:39:13 AM #

I've been waiting for this change for ages.  Thanks for your work!
I notice that it only supports files stored in the same app pool.  Any reason why it can't support remote files?

Comments are closed

Recent Tweets

Twitter May 21, 20:23
Had to unplug Kinect to watch Xbox one video on 360. Poor thing freaked out by people screaming commands and stopped playing every few secs.

Twitter May 21, 18:38
Wonder how long it takes for http://t.co/O1XAGcMV5l web gallery to test app. Stuck in "testing" state for a few days now. Is this manual?

Twitter May 15, 19:37
Trying to figure out if Linux Mint need an upgrade. And I thought Windows versions complicated. Is that LMDE thing what I need for my Nadia?

@rtur