<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,6 +11,11 @@ After including the 'qtobject.js' file in your view, using the quicktime_tag hel
 
 &lt;%= quicktime_tag(:path_to_video_file, :id, :width, :height, options = {} ) %&gt;
 
+You can also use a placeholder image by adding :placeholder to the options hash. Pass in a path to an image and you're 
+Quicktime video will be preceded with a placeholder image, click it to start the movie. You know, just like Apple Trailers.
+
+&lt;%= quicktime_tag(:path_to_video_file, :id, :width, :height, {:placeholder =&gt; &quot;/images/click-to-play.gif&quot;, :loop =&gt; true, :autoplay =&gt; false} ) %&gt;
+
 
 
 Extra parameters that are used by the quicktime embed object can be added using the options hash. For Example:</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -5,19 +5,27 @@ module QuicktimeHelper
     
     quicktime_params = &quot;&quot;
     
-    options.each_pair { |key, value| quicktime_params += &quot;myQTObject.addParam(\&quot;#{key}\&quot;, \&quot;#{value}\&quot;);&quot; }
-	
-  	&quot;&lt;script type=\&quot;text/javascript\&quot;&gt;
-  	// &lt;![CDATA[
-  		var myQTObject = new QTObject(\&quot;#{filename_with_path}\&quot;, \&quot;#{id}\&quot;, \&quot;#{width}\&quot;, \&quot;#{options[:controller] == false ? height : height + 15 }\&quot;);
-  		#{quicktime_params}
-  		myQTObject.write();
-  	// ]]&gt;
-  	&lt;/script&gt;
-  	&lt;noscript&gt;
-  		&lt;p&gt;You must enable Javascript to view this content. &lt;a href=\&quot;#{filename_with_path}\&quot;&gt;(Link to alternate content)&lt;/a&gt;&lt;/p&gt;
-  	&lt;/noscript&gt;
-  	&quot;
+    if options.has_key? :placeholder
+      initializer = %{var myQTObject = new QTObject(&quot;#{options[:placeholder]}&quot;, &quot;#{id}&quot;, &quot;#{width}&quot;, &quot;#{options[:controller] == false ? height : height + 15 }&quot;);}
+      options.delete_if {|key, value| key == :placeholder }
+      options.merge(:href =&gt; filename_with_path, :target =&gt; &quot;myself&quot;).each_pair { |key, value| quicktime_params += &quot;myQTObject.addParam(\&quot;#{key}\&quot;, \&quot;#{value}\&quot;);&quot; }
+    else
+      initializer = %{var myQTObject = new QTObject(&quot;#{filename_with_path}&quot;, &quot;#{id}&quot;, &quot;#{width}&quot;, &quot;#{options[:controller] == false ? height : height + 15 }&quot;);}
+      options.each_pair { |key, value| quicktime_params += &quot;myQTObject.addParam(\&quot;#{key}\&quot;, \&quot;#{value}\&quot;);&quot; }
+    end
+	  	
+  	%{
+  	  &lt;script type=&quot;text/javascript&quot;&gt;
+  	    // &lt;![CDATA[
+          #{initializer}
+  		    #{quicktime_params}
+  		    myQTObject.write();
+  	    // ]]&gt;
+  	  &lt;/script&gt;
+  	  &lt;noscript&gt;
+  		  &lt;p&gt;You must enable Javascript to view this content. &lt;a href=&quot;#{filename_with_path}&quot;&gt;(Link to alternate content)&lt;/a&gt;&lt;/p&gt;
+  	  &lt;/noscript&gt;
+    } 
   end
 
 end
\ No newline at end of file</diff>
      <filename>lib/quicktime_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fa29ecd41c310323c21b2a6c101af63be36e536b</id>
    </parent>
  </parents>
  <author>
    <name>Jon Maddox</name>
    <email>jon@jonsthoughtsoneverything.com</email>
  </author>
  <url>http://github.com/maddox/quicktime_helper/commit/148536542b6ac7526221ed2c61ac248a0636d1bc</url>
  <id>148536542b6ac7526221ed2c61ac248a0636d1bc</id>
  <committed-date>2007-01-18T21:43:42-08:00</committed-date>
  <authored-date>2007-01-18T21:43:42-08:00</authored-date>
  <message>added the ability to use a placeholder image</message>
  <tree>f8fa2c06739daab816ba803295c7bac4c4ae7058</tree>
  <committer>
    <name>Jon Maddox</name>
    <email>jon@jonsthoughtsoneverything.com</email>
  </committer>
</commit>
