From b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51 Mon Sep 17 00:00:00 2001 From: glen201 Date: Fri, 31 Jul 2009 02:01:53 +0000 Subject: #486064: by RobertOak "no video fields in views" Fixed, added Views 2 support .MPEG/MPG defaulted to play with Windows Media --- includes/common.inc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'includes/common.inc') 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 * @author Glen Marianko Twitter@demoforum - * @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 .'"> ' . "\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 .= ' - ' . "\n" + + ' . "\n" . _video_get_parameters($node) . '

'. t('Your browser is not able to display this multimedia content.') .'

'; // only one needed becouse only one opening tag has been parsed by browsers -- cgit v1.2.3