xm:lab

 English |  Español |  Français |  Italiano |  Português |  Русский |  Shqip

Guide to Hosting your own Video Site

Video Aggregation in Drupal

In other parts of the guide we have dealt with the advantages of aggregating Video into one place. Let's find out how to do it in Drupal. This hands on guide work to pull videos form RSS feeds.

Hands On: Using the Feeds module to aggregate RSS feeds

We assume that you already have the following modules install from previous chapter,  media, media_youtube, media_element. 

Next we need to install and enable the following modules in the normal way; feeds, media_feeds, media_internet_sources, feeds admin. You should also install the Simple Pie library, see these notes how to do this.

Set up a a content type for your video as in previous chapter. In this case a new one called Imported Video. 

Use a File field as a Media file selector widget.

Under Manage Display to set the format to MediaElement Video.

Tech Note: if you are importing videos other than YouTube, you may need to choose the Rendered file or OEmbed method as MediaElement may not work.

Add An Importer

Select Structure > Feed Importers > Add Importer

Add relevant name and description.

Complete Basic Settings. Make sure Attach to content type is set to Stand alone form.

Under Parser click Change and set to Simple Pie.

Make sure Processor is set to Node Processor

Node Processor settings to the name of your content type. Imported Video.

Set Text Format to Filtered HTML.

Now click on Mapping link under the Processor settings on the left of the screen.  

Now start to add mapping settings. These are different depending on your source.

Map YouTube Feed:

Fill out the mapping sections as follows.

 

Map RSS with Enclosures

We can now import a WordPress feed as an example of an podcast with links to media files.

To do this we need to create another importer and repeat the above proceedure but we will map Enclosures to our Imported Video File field.

Importing the Video items

To import our media items, go back to basic settings and click the link for stand alone import page.

We should see our two importers.

Click on one of them. Enter your RSS feed and click on Import.

When you check your imported videos they should display with a player.

 

Finding YouTube Feeds

If you are not sure where to find RSS feeds for YouTube videos there is some good help here.

There is much more detailed help here.

There has been error in communication with Booktype server. Not sure right now where is the problem.

You should refresh this page.