YouTube is by far the most popular video sharing site on the web. Many people have asked me how to embed YouTube videos into their website and with innovations such as the YouTube API there are a wealth of options to help the website owner integrate YouTube videos.
The following represents the tip of the iceberg as far as Drupal modules are concerned as there are new projects popping up on a regular basis with goal of providing the best Drupal media module to handle the administration of uploading, linking and integrating YouTube videos for both Drupal CMS.
Drupal Video Modules
- The simple approach - use the YouTube embed code directly within nodes. This is the easiest method to get YouTube videos on your site, simply copy and paste the embed code provided by YouTube and make sure to set the input format to 'Full HTML' before saving the post. This will allow Drupal to correctly output the YouTube embed code, otherwise you may end up with a broken web page.
- A module based approach - The video filter module. The video filter module allows you to embed YouTube video by adding some code to the post using the following filter/mark up: [video:video-url].
- Another module based approach - The embedded media field module. The Embedded media field module is a multipurpose embedding module that supports video, audio and images. The video part of the module provides access to YouTube and a variety of video hosting websites. The 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.
Players and Interfaces
Having tested a range of video players and video display interfaces for the web, I recommend the following players and display styles:
Multipurpose Media Player
The JW Player has evolved steadily over the past five years and has found a new home at Long Tail Video. The beauty of the JW Player is that it is capable of playing a variety of media types and is a very useful all-in-one presentation solution for your website.
Lightbox Style Video Overlays
I have successfully deployed High Slide JS on Magento websites and it really is a breeze to use once the initial set up has been achieved.