RTUR.NET

.NET and Open Source: better together

NAVIGATION - SEARCH

Enclosure Support in BlogEngine.net

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) -

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?

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.

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

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

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.

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!

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.

good extension, thank you for sharing your knowledge

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