Many Ways To Do YouTube On Drupal
No one can dispute that YouTube is the most popular video sharing site on the web. And as YouTube's popularity has grown they have also added tools that make the site very attractive for people who want to use YouTube as a video repository site for content that will be distributed elsewhere. Innovations like the YouTube API and newer video players have made this proposition even more attractive.
Given the previous information it's no surprise that many Drupal site developers seek to leverage YouTube to deliver videos via their sites. Thankfully, a variety of methods and modules exist that allow Drupal site developers options for integrating YouTube with their site. This drop breaks down a number of those options for both Drupal 5 and Drupal 6.
Drupal 5
- Embed code within nodes. By far the easiest and most flexible way to integrate YouTube videos on your site. Just copy and paste the embed codes provided for each video player into the node body. Make sure that your input format is set to 'Full HTML' or the player will not appear when the post is saved.
- The asset module. The asset module can connect to your YouTube account via the YouTube API. This allows you to access lists of uploaded videos and favorites which you can then insert into posts directly from the Drupal adminstration interface.
- The embedded media field module. Embedded media field is a multi-purpose embedding module that supports images, video and audio. The video part supports YouTube and a wide variety of other video sites.This module allows you to create a field using CCK that will accept the link to a YouTube video and automatically convert that link to an embedded video player in the node.
Drupal 6
- Embed code within nodes.
- The video filter module. The video filter module (also compatible with Drupal 5) allows you to embed YouTube video players by adding a bit of code to each post that appears as follows: [video:video-url].
As you can see the Drupal 6 specific modules for YouTube are a bit limited. I have a feeling that in time the options will improve. A discussion about Drupal and YouTube API integration is taking place over on Drupal Groups. So I'm pretty sure that we should see some pretty fantastic integration options utilizing the YouTube API some time in the future.
- learnbythedrop's blog
- 5661 reads




Comments
I just noticed this comparison. Fortunately, the Embedded Media Field port to 6 is well on its way, so it can continue to be a powerful and flexible solution. Additionally, beeradb has worked up a wrapper for YouTube API that he plans to release soon. There are also other pseudo-contenders, so I hope we continue to coordinate this process as we move forward.
Hi, thanks for your help with these things, it really helps. ON this video you say just add [video:video-url] now i tried entering [video:video-url] where video-url was the youtube url, and also tried it where it was the embeded link in utube and neither worked. Now i just entered this in the text box of the post. is this correct or do i enter it somewhere else?
Thank you
What you described should work assuming that you have the Video Filter module activated. You also need to make sure that you check the Video Filter box for the appropriate input format. You can find the input format settings at /admin/settings/filters.
Its just showing up like this on the site, just text no video
testing [video:http://www.youtube.com/watch?v=ET37nuH7hgw&NR=1]
All I can say is double check the input format if you haven't done so already. I can see the video on a test node created at http://sandbox.awakenedvoice.com/node/200. If you're sure that the input format filter has been properly checked then you're best bet is to try to get an answer on the module issue queue at http://drupal.org/project/issues/video_filter.
A note that Embedded Media Field is just about ready for d6. It works for new installations, but we still need to hash out the upgrade path.
Also, the YouTube API module has been released for a few weeks now, and this opens the way for better YouTube integration in Drupal.
As a note, just be sure to write directly on the HTML if you are using TinyMCE or similars, otherwise your embedding code is lost.
I had a problem getting embedded YouTube code to work on the host site. I use FckEditor & I found that I had to click on the 'Source' button, then paste the code. The editor has an adverse effect on the code & the video would not display. If I edit the node, the code does not even display until I click on the 'Source' button.
I'm able to embed with the FCKEditor. I select the "switch to plain text editor" link that is below the FCKEditor area. I paste the embed code and then switch back. It FCKEditor keeps the embed code intact. You might want to check your input format to ensure that you have Full HTML selected. If you have Filtered HTML selected then the video will not display.
If you're still having troubles you can also create a CCK field just for the embed code. See Adding Fields With CCK for assistance on accomplishing this. You can also add the Video Filter module which provides similar functionality.
Post new comment