FLOSS Manuals

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

Hosting your own Video Site

Video Aggregation in Drupal

In other parts of the guide we have dealt with the advantages of aggregating video clips to present them into one place. Let's find out how to do it in Drupal. This hands on guide work to pull videos from RSS feeds into a Drupal content nodes. 

Hands On: Using the Feeds module to aggregate RSS feeds

Install and enable the following modules in the normal way; media, media_youtube, media_elementfeeds, media_feeds, media_internet_sources (part of media), feeds admin (part of feeds). 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

A feed importer is the way we add and configure our site to accept data from RSS feeds. It allows us to set different configurations for different kinds of feeds. 

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. Read on to see two possible mappings with a YouTube feed and a standard podcast RSS feed.

Map a YouTube Feed

Fill out the mapping sections as follows.

 

Map an RSS feed with Enclosures (Podcast)

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 procedure 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 an HTML 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.