Integrating Drupal with the Kaltura platform

Submitted by Justin Emond on Sun, 12/12/2010 - 8:30am
Justin Emond's picture

There are a variety of ways to integrate video into a Drupal site. There are free but branded options like YouTube or Blip.tv, self-hosted options using the FlashVideo module, and higher-end video platforms like Viddler and Kaltura. We wrote an article comparing the pros and cons of these: Video Hosting and Integration in Drupal.

In this post I want to talk specifically about integrating a Drupal site with Kaltura. We recently worked on integrating the Kaltura platform with a large, complex Drupal project called the Annenberg Social News Platform. The site was recently featured as a Drupal.org case study.

What is Kaltura?

Kaltura is really two things:

  1. Kaltura.com: A professional enterprise-level video hosting provider, complete with custom analytics data
  2. Kaltura.org: An open-source video hosting server software sponsor

Essentially the platform that Kaltura uses to host video for their customers is also available to the public to download and run on their own hardware, should a user want to roll their own video hosting server. When choosing to proceed with Kaltura you really have two options: do you want Kaltura to take care of the hosting, bandwidth, storage and backup of video, or do you want to handle this yourself and host your own platform?

The Kaltura dashboard for managing your videos
The Kaltura dashboard for managing your videos

This decision shouldn’t be taken lightly. If you feel your organization’s IT department has both the technical expertise and resources to support the platform and you feel that you can host the video more cheaply than Kaltura can, then you should host it yourself. Otherwise, a hosted option is likely better.

Kaltura also provides libraries to ease integration with common platforms, like Moodle, Joomla, Elgg, most common programming libraries and of course Drupal.

Drupal integration

The Kaltura module comes with many customization settings
The Kaltura module comes with many customization settings

Integrating Kaltura with Drupal is straight-forward thanks to the Kaltura Drupal module. You install the module and enter in a password provided by Kaltura so that the module can communicate with your account. The module comes with a slick Flash-based uploader for importing any local content, capturing video from web cams or grabbing content from other sites like Flickr.

The module automatically adds the Kaltura uploader to the content creation screen for the content types of your choosing. While the user stays inside of Drupal, the content is actually uploaded (and eventually transcoded) to Kaltura servers. The reference to the Kaltura video actually becomes a new node in your site associated to the node the user is creating. Again, this is invisible to the user.

When the video is displayed the Kaltura module outputs embed code that pulls the Flash player directly from Kaltura, and embeds your content. If the content hasn’t finished transcoding on the Kaltura end, the player will appear but will show a message that the transcoding isn’t complete.

In addition, the user can’t select the thumbnail image that will appear by default in the player when the page loads but before the player has started playing.

The flash-based uploader provided by Kaltura
The flash-based uploader provided by Kaltura

One feature the module doesn’t provide that we ended up needing to create for the project was the ability for a user to select where in the body field the video player should appear. You can customize a set position for the player to appear in the Drupal theme, but there isn’t an out-the-box solution to allow the content creator to customize this position. We extended the excellent Video Filter module to achieve this.

Wrapping up

Overall, Kaltura integrates well with Drupal and provides a robust and powerful video hosting platform for Drupal-powered sites.

8 comments

by acaiberries (not verified) on Sun, 12/12/2010 - 11:16am

Nice blog! I'll add it to my rss reader :)

by Anonymous (not verified) on Mon, 12/13/2010 - 4:43pm

Thanks Justin for an informative post.
Justin, do you have a sense as to Kaltura's usefulness where OG group members could create a post (showing a webcam video) which is visible only by members of that same group?

Justin Emond's picture

by Justin Emond on Tue, 01/04/2011 - 6:21am

Hi Team,

Kaltura does support capturing video from a web cam. While we didn't use Organic Groups with Kaltura on this project, I don't see a reason this wouldn't work as you want.

Cheers,
jpe

by Anonymous (not verified) on Mon, 12/13/2010 - 6:58pm

and if you want to host the kalturace platform yourself but dont want the trouble of setting up the server, the guys at x7host can get you up and running real quickly

by Zohar Babin (not verified) on Mon, 12/13/2010 - 10:02pm

Hi Justin,

Thanks for the lovely post! and the great suggestions.

Can you share more details about the project you created?

If you'd like to share the details of the extension you created based on Video Filter - please do so on http://drupal.org/project/issues/kaltura, as we're working on the next release, this sounds like a great feature to add and will be great contribution.

If you're able to spare a few more minutes, check out the release coordination on the issue queue (http://drupal.org/node/917796), we'd love for your feedback and ideas on how to make the next release better.

Feel free to reach out directly too.

Justin Emond's picture

by Justin Emond on Tue, 01/04/2011 - 6:19am

Hi Zohar,

Thanks for your comment.

We will take a look at the issue queues and I will update you later this week.

jpe

by Victor Adejola (not verified) on Mon, 11/21/2011 - 3:38pm

Your post here is a nice one. I want to deploy a live video streaming services to my customers such that they would be able to capture live events and upload it to my video server. I would like to know if there is anyone who has completed such deployment using Kaltura.

In addition, how well does kaltura deliver video contents to mobile devices? I mean performance and compression capabilities.

Thanks
Victor

Chris Steins's picture

by Chris Steins on Tue, 11/22/2011 - 11:58am

Hi Victor,

Thanks for your post. Kaltura is a very rich service. I'm not aware of anyone who has captured live events, but I bet someone has done it. If you find out, please consider posting it back to this thread.

Kaltura does a great job delivering video to mobile devices using HTML5. You can check out an example of how we're using it at http://www.lacma.org This site uses Kaltura to deliver video to web visitors, and also to mobile visitors.

Thanks!

Post new comment