Index: video_filter.codecs.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.codecs.inc,v
retrieving revision 1.3.2.10
diff -u -p -r1.3.2.10 video_filter.codecs.inc
--- video_filter.codecs.inc	31 Jul 2009 21:00:38 -0000	1.3.2.10
+++ video_filter.codecs.inc	31 Jul 2009 22:12:17 -0000
@@ -111,6 +111,13 @@ function video_filter_codec_info() {
                 ),
     'ratio' => 480 / 335,
   );
+  $codecs['slideshare'] = array(
+    'name' => t('Slideshare'),
+    'callback' => 'video_filter_slideshare',
+    'instructions' => t('You need to construct your own URL, using the "Wordpress Embed" code from Slideshare, extract the "id" and "doc" parts, and form the URL like this: slideshare.net/?id=1759622&amp;doc=usingdrupal-090723103440-phpapp01.'),
+    'regexp' => '/slideshare\.net\/\?id=([a-z0-9]+).*doc=([a-z0-9-]+)/',
+    'ratio' => 500 / 410,
+  );
 
   return $codecs;
 }
@@ -266,4 +273,10 @@ function video_filter_bliptv($video) {
   );
   
   return video_filter_flash($video, $params);
+}
+
+function video_filter_slideshare($video) {
+  $video['source'] = 'http://static.slideshare.net/swf/ssplayer2.swf?id=' . $video['codec']['matches'][1] . '&amp;doc=' . ($video['codec']['matches'][2]);
+
+  return video_filter_flash($video);
 }
\ No newline at end of file
