diff options
author | glen201 <glen201@527446.no-reply.drupal.org> | 2009-07-31 02:01:53 +0000 |
---|---|---|
committer | glen201 <glen201@527446.no-reply.drupal.org> | 2009-07-31 02:01:53 +0000 |
commit | b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51 (patch) | |
tree | 0a9b459d44a0d2729c479d5393e87cd94cb785f2 /includes/common.inc | |
parent | 2524eecbeef2c8b3c0d80a5ffcde2604da50e30c (diff) | |
download | video-b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51.tar.gz video-b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51.tar.bz2 |
#486064: by RobertOak "no video fields in views" Fixed, added Views 2 support
.MPEG/MPG defaulted to play with Windows Media
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/includes/common.inc b/includes/common.inc index eeca72a..c70a7a5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -8,13 +8,9 @@ * porting to Drupal 6 * @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw@gmail.com> * @author Glen Marianko Twitter@demoforum <glenm at demoforum dot com> - * @todo + * @todo Configure default players by video filetype (user configurable?) */ - - - - /** * Get the object for the suitable player for the parameter resource */ @@ -23,10 +19,9 @@ function _video_common_get_player($node) { case 'divx': return theme('video_play_divx', $node); case 'mov': - case 'mp4': case '3gp': case '3g2': - case 'mpg': + case 'mp4': return theme('video_play_quicktime', $node); case 'rm': return theme('video_play_realmedia', $node); @@ -40,7 +35,9 @@ function _video_common_get_player($node) { case 'asf': case 'wmv': case 'avi': - return theme('video_play_windowsmedia', $node); + case 'mpg': + case 'mpeg': + return theme('video_play_windowsmedia', $node); case 'ogg': return theme('video_play_ogg_theora', $node); case 'youtube': @@ -246,9 +243,11 @@ data="'. $url .'"> <![endif]-->' . "\n"; // params will be passed to both IE or not IE browsers + //GMM: kioskmode enabled so users don't bypass download security video through player $output .= '<param name="src" value="'. $url .'" /> <param name="AUTOPLAY" value="'.(variable_get('video_autoplay', TRUE) ? 'true' : 'false').'" /> - <param name="KIOSKMODE" value="false" />' . "\n" + <param name="KIOSKMODE" value="true" /> + <param name="CONTROLLER" value="true" />' . "\n" . _video_get_parameters($node) . '<p>'. t('Your browser is not able to display this multimedia content.') .'</p> </object>'; // only one </object> needed becouse only one opening tag has been parsed by browsers |