? ooyala-configurable_size.patch
Index: ooyala.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ooyala/ooyala.module,v
retrieving revision 1.6
diff -u -p -r1.6 ooyala.module
--- ooyala.module	12 Nov 2009 04:58:03 -0000	1.6
+++ ooyala.module	19 Nov 2009 02:22:28 -0000
@@ -95,6 +95,8 @@ function ooyala_theme() {
     'ooyala_player' => array(
       'arguments' => array(
         'embededcode' => 0,
+		'width' => 0,
+		'height' => 0,
       ),
     ),
     'ooyala_thickbox_player' => array(
@@ -566,16 +568,20 @@ function ooyala_api_fetch_image($embedco
 /**
  * A public API function used to output an Ooyala player.
  */
-function ooyala_player($embededcode) {
-  print theme('ooyala_thickbox_player', $embededcode);
+function ooyala_player($embededcode, $width = null, $height = null) {
+  print theme('ooyala_thickbox_player', $embededcode, $width, $height);
 }
 
 /**
  * Theme function to output an Ooyala video player.
  */
-function theme_ooyala_player($embededcode) {
-  $width = variable_get('ooyala_video_width', 400);
-  $height = variable_Get('ooyala_video_height', 300);
+function theme_ooyala_player($embededcode, $width = null, $height = null) {
+  if(!$width){
+    $width = variable_get('ooyala_video_width', 400);
+  }
+  if(!$height){
+    $height = variable_Get('ooyala_video_height', 300);
+  }
   return sprintf('<script src="http://www.ooyala.com/player.js?width=%d&height=%d&embedCode=%s"></script>', $width, $height, $embededcode );
 }
 
@@ -681,7 +687,7 @@ function template_preprocess_ooyala_thum
  * Preprocess function for ooyala-thickbox-player.tpl.php.
  */
 function template_preprocess_ooyala_thickbox_player(&$variables) {
-  $variables['playercode'] = theme('ooyala_player', $variables['embededcode']);
+  $variables['playercode'] = theme('ooyala_player', $variables['embededcode'], $variables['width'], $variables['height']);
 }
 
 /**
