? video_filter-62dev.patch
Index: video_filter.codecs.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.codecs.inc,v
retrieving revision 1.3.2.25
diff -u -p -r1.3.2.25 video_filter.codecs.inc
--- video_filter.codecs.inc	20 Mar 2010 12:20:08 -0000	1.3.2.25
+++ video_filter.codecs.inc	14 Jul 2010 21:12:49 -0000
@@ -160,7 +160,6 @@ function video_filter_codec_info() {
     'regexp' => '/picasaweb\.google\.com\/data\/feed\/base\/user\/([a-zA-Z0-9@_\-]+)\/albumid\/([a-z0-9]+)/i',
     'ratio' => 800 / 600,
   );
-
   $codecs['teachertube'] = array(
     'name' => t('Teachertube'),
     'sample_url' => 'http://www.teachertube.com/viewVideo.php?video_id=VIDEOID',
@@ -168,6 +167,13 @@ function video_filter_codec_info() {
     'regexp' => '/teachertube\.com\/viewVideo.php\?video_id\=([0-9]+)/i',
     'ratio' => 16 / 9,
   );
+  $codecs['ooyala'] = array(
+    'name' => t('Ooyala'),
+    'sample_url' => 'http://player.ooyala.com/player.js?deepLinkEmbedCode=d1Z29oMTqqKBoMP4m50UnEE5EQbDEHPT&width=480&embedCode=d1Z29oMTqqKBoMP4m50UnEE5EQbDEHPT&height=360',
+    'callback' => 'video_filter_ooyala',
+    'regexp' => '/player\.ooyala\.com\/player\.js\?(.+)/i',
+    'ratio' => 480 / 360,
+  );
 
   return $codecs;
 }
@@ -366,3 +372,9 @@ function video_filter_teachertube($video
 
   return video_filter_flash($video, $params);
 }
+
+function video_filter_ooyala($video) {
+	$video['source'] = 'http://player.ooyala.com/player.js?' . $video['codec']['matches'][1];
+
+  return video_filter_script($video);
+}
Index: video_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.module,v
retrieving revision 1.12.2.15
diff -u -p -r1.12.2.15 video_filter.module
--- video_filter.module	20 Mar 2010 12:20:08 -0000	1.12.2.15
+++ video_filter.module	14 Jul 2010 21:11:27 -0000
@@ -251,6 +251,24 @@ function theme_video_filter_flash($video
 }
 
 /**
+ * Wrapper that calls the theme function.
+ */
+function video_filter_script($video) {
+  return theme('video_filter_script', $video);
+}
+
+/**
+ * Function that outputs the <script> element.
+ *
+ * @ingroup themeable
+ */
+function theme_video_filter_script($video) {
+  $output = '<script src="' . $video['source'] . '"></script>' . PHP_EOL;
+
+  return $output;
+}
+
+/**
  * Implementation of hook_theme().
  */
 function video_filter_theme($existing, $type, $theme, $path) {
@@ -258,6 +276,9 @@ function video_filter_theme($existing, $
     'video_filter_flash' => array(
       'arguments' => array('video' => NULL, 'params' => array()),
     ),
+	'video_filter_script' => array(
+      'arguments' => array('video' => NULL),
+    ),
   );
 }
 
