Flowplayer con Wmode = opaque

Normalmente el módulo de Drupal 7, no trae la opción wmode, se aplicaron parches para realizar esta opicón de forma admnistrable:
Se deben aplicar los siguientes parches, para que aparezca en la administración del módulo Floplayer Drupal, la opción de ponerlo en wmode.

Tener en cuenta que se aplicaron parches para poner el wmode administrable y opaque:
Ver : https://drupal.org/node/529036

1. wmode.flowplayer.admin_.inc_.patch
2. wmode.flowplayer.module.patch
3. wmode.flowplayer.js_.patch
-: quitar
+: adicionar
1. Parche No 1.
Index: flowplayer/flowplayer.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flowplayer/Attic/flowplayer.admin.inc,v
retrieving revision 1.1.2.3
diff -b -U 5 -r1.1.2.3 flowplayer.admin.inc
--- flowplayer/flowplayer.admin.inc    28 Jul 2009 17:09:01 -0000    1.1.2.3
+++ flowplayer/flowplayer.admin.inc    10 Nov 2009 11:50:15 -0000
@@ -35,10 +35,21 @@
       'scale' => t('Scale: Fill all available space, ignoring metadata'),
     ),
     '#description' => t('The <a href="@options">scaling-property</a> for the video. Scale is the default option.', array('@options' => 'http://flowplayer.org/documentation/configuration/clips.html#scaling')),
     '#default_value' => variable_get('flowplayer_background_gradient', 'scale'),
   );
+  $form['behavior']['flowplayer_wmode'] = array(
+    '#type' => 'select',
+    '#title' => t('Wmode'),
+    '#options' => array(
+      'window' => t('window'),
+      'opaque' => t('opaque'),
+      'transparent' => t('transparent'),
+    ),
+    '#description' => t('Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. <strong>window</strong>: movie plays in its own rectangular window on a web page; <strong>opaque</strong>: the movie hides everything on the page behind it; <strong>transparent</strong>: the background of the HTML page shows through all transparent portions of the movie, this may slow animation performance.'),
+    '#default_value' => variable_get('flowplayer_wmode', 'window'),
+  );

   // Construct the color picker
   $form['color'] = array(
     '#type' => 'fieldset',
     '#title' => t('Player colors'),

2.
Index: flowplayer/flowplayer.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flowplayer/Attic/flowplayer.module,v
retrieving revision 1.2.2.8
diff -b -U 5 -r1.2.2.8 flowplayer.module
--- flowplayer/flowplayer.module    8 Sep 2009 15:09:10 -0000    1.2.2.8
+++ flowplayer/flowplayer.module    10 Nov 2009 11:20:44 -0000
@@ -89,10 +89,11 @@
     drupal_add_css(drupal_get_path('module', 'flowplayer') .'/flowplayer.css');

     // Tell the JavaScript where flowplayer.swf is.
     $settings = array(
       'flowplayerSwf' => drupal_get_path('module', 'flowplayer') .'/flowplayer/flowplayer.swf',
+      'flowplayerWmode' => variable_get('flowplayer_wmode','window'),
     );
     drupal_add_js($settings, 'setting');
     $flowplayer_added = TRUE;
   }

 3.

 Index: flowplayer/flowplayer.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flowplayer/Attic/flowplayer.js,v
retrieving revision 1.1.2.5
diff -b -U 5 -r1.1.2.5 flowplayer.js
--- flowplayer/flowplayer.js    26 May 2009 03:20:38 -0000    1.1.2.5
+++ flowplayer/flowplayer.js    10 Nov 2009 11:21:31 -0000
@@ -82,8 +82,8 @@
     if (config['clip'] && config['clip']['onCuepoint'] && typeof(config['clip']['onCuepoint'][1]) == 'string') {
       config['clip']['onCuepoint'][1] = eval(config['clip']['onCuepoint'][1]);
     }

     // Create the flowplayer element on the non-processed elements.
-    $(selector + ':not(.flowplayer-processed)').addClass('flowplayer-processed').flowplayer(Drupal.settings.basePath + Drupal.settings.flowplayerSwf, config);
+    $(selector + ':not(.flowplayer-processed)').addClass('flowplayer-processed').flowplayer({src: Drupal.settings.basePath + Drupal.settings.flowplayerSwf, wmode: Drupal.settings.flowplayerWmode}, config);
   });
 };

Comentarios

Entradas populares