Embedding audio and video files in blog posts

Topics: General, Writing modules
Jul 16, 2012 at 12:23 PM

I want to create a blog and would like to use Orchard's built-in Blog module. The authors of blog post should be able to embed audio (mostly mp3) and video files anywhere inside a post. Ideally when viewing the post, the media file should be presented using a cross-browser compatible player like jPlayer (http://jplayer.org/).

I have been searching for modules that achieve this but I have found only the jPlayer module (http://gallery.orchardproject.net/List/Modules/Orchard.Module.Orchard.jPlayer), which works ok but isn't quite what I'm looking for, because it adds the player on the bottom of the post and I cannot set a single audio or video file to be played, it works like a Media Library and also cannot specify from the editor which media file should be included.

I would like to be able to insert a file anywhere in the post using the editor. Is there such a module or does anyone know something similar that might help me ?


Jul 16, 2012 at 4:08 PM

I don't know of anything such built for Orchard, but what you really need is a TinyMCE plugin that's capable of doing that. Take a look at the TinyMCE Deluxe module that makes it possible to hook plugins into the editor (unlike the built-in one) and search for a plugin for embedding jPlayer.

BTW aren't you Hungarian? :-)

Jul 18, 2012 at 6:20 AM

Thanks, this should work; I will look into it. And yes, I'm Hungarian :)

Jul 18, 2012 at 9:15 AM

Also take a look at this issue, it might be interesting for you as well.

And you should totally check out Orchard Hungary :-).