--- cdn2_flowplayer.module	2009-02-26 14:51:54.000000000 -0800
+++ cdn2_flowplayer.module.new	2009-02-26 14:45:03.000000000 -0800
@@ -25,7 +25,7 @@
   return sprintf('<div id="flowplayer-%s-%s"></div>', $node->nid, $preset->shortName);
 }
 
-function _cdn2_flowplayer_get_js($nid, $preset_name, $player_path, $width, $height, $video_url, $splash_image_file) {
+function _cdn2_flowplayer_get_js($nid, $preset_name, $player_path, $width, $height, $video_url, $splash_image_file, $bufferLength=5) {
   $js = "
 flashembed('flowplayer-%s-%s', 
 {
@@ -44,9 +44,10 @@
     initialScale: 'fit',
     videoFile: '%s',
     loop: false,
-    splashImageFile: '%s'
+    splashImageFile: '%s',
+    startingBufferLength: '%d',
   }
 } 
 );";
-  return sprintf($js, $nid, $preset_name, $player_path, $width, $height, $video_url, $splash_image_file);
+  return sprintf($js, $nid, $preset_name, $player_path, $width, $height, $video_url, $splash_image_file, $bufferLength);
 }
