From d4579fc07c199e25bb518b275b74173d92a49ae8 Mon Sep 17 00:00:00 2001 From: Fabio Varesano Date: Sun, 4 Jun 2006 20:07:30 +0000 Subject: Patch #63497 by Psicomante (http://drupal.org/user/29518) Added support for .dcr and .dir videos. Patch #57215 by benthere (http://drupal.org/user/28240) Added support for Google videos. I started from the patch submitted by benthere but I had to change something becouse google video embed code seemed changed from what benthere used to code his patch. Details on how to use Google video files are included in FILE_TYPES.txt and on video help page. Removed some unused flv player settings. (no more need for a skin) --- FILE_TYPES.txt | 20 ++++++++-- video.module | 113 ++++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 105 insertions(+), 28 deletions(-) diff --git a/FILE_TYPES.txt b/FILE_TYPES.txt index a941523..a0892cf 100644 --- a/FILE_TYPES.txt +++ b/FILE_TYPES.txt @@ -5,7 +5,7 @@ FILE TYPE INFORMATIONS Video.module for Drupal 4.7 supports multiple video formats. -.mov, .wmv, .rm, .3gp, .mp4 +.mov, .wmv, .rm, .3gp, .mp4, .swf, .dir, .dcr These files type are supported out the box. To play these file types you need to enter in the path to the file. If your video is on the same webserver as drupal, you can use a path relative @@ -13,6 +13,11 @@ Video.module for Drupal 4.7 supports multiple video formats. If your video is on another server you can enter the URI to the video like "http://www.example.com/videos/my-video.mov". The .mp4 and .3gp extentions use the Quicktime player. + The .dir and .dcr extentions use the Director player. + + If you need to add additional object parameters to swf or dir videos you + can enable the "Allow adding of parameters to object HTML" option. Then + in the video creation page you will be able to specify the parameters. YouTube.com support You can host videos on youtube.com and put them on your site. @@ -21,9 +26,18 @@ YouTube.com support you for the video is "http://www.youtube.com/watch.php?v=XM4QYXPf-s8" you would enter "XM4QYXPf-s8". +Google Video support + You can host videos on video.google.com and put them on your site. + To do this, after you upload the video on Google video enter get the + the embed code. In this code you will find an attribute like + src="http://video.google.com/googleplayer.swf?docId=-1591729516923874694" . + You will need the -1591729516923874694 like number just after docId= . + Then use "google:-1591729516923874694" as video file value. + .flv Video.module for drupal 4.7 now support Macromedia Flash FLV Videos using FlowPlayer ( http://flowplayer.sourceforge.net/ ). To use .flv files simply download Flowplayer and put the file - called "Player.swf" into your Drupal folder. - + called "FlowPlayer.swf" or "Player.swf" into your Drupal folder. + Then set the Flash player file name to use on the Flash settings in video module configuration page. + diff --git a/video.module b/video.module index 1b02f33..c85ad1e 100644 --- a/video.module +++ b/video.module @@ -46,8 +46,14 @@ function video_help($section = 'admin/help#video') { $help = ''; $help .= '

' . t('Video File Field') . '

'; $help .= '

' . t('This is the field where you enter the video file information. The Video module currently supports these file types:') . '

'; - $help .= ''; + $help .= ''; $help .= '

' . t('Multi-file Dowload Help') . '

'; $help .= '

' . t('If enabled, this group holds all the settings for multi-file downloads. Multi-file downloads allows you to have a list of any number of files on the download page. These files are usually scanned from a folder. This allows the listing of multiple sizes and video types for visitors to choose from, you can even zip the files up.') . '

'; $help .= '