<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1271,18 +1271,21 @@ didReceiveResponse:(NSHTTPURLResponse *)response
 	}
     
     [ element setAttribute: @&quot;src&quot; value: src ];
-    [ element setAttribute: @&quot;type&quot; value: @&quot;video/mp4&quot; ];
-    [ element setAttribute: @&quot;scale&quot; value: @&quot;aspect&quot; ];
-    [ element setAttribute: @&quot;autoplay&quot; value: @&quot;true&quot; ];
-    [ element setAttribute: @&quot;cache&quot; value: @&quot;false&quot; ];
-   
-    if( ! [ element hasAttribute: @&quot;width&quot; ] )
+	[ element setAttribute: @&quot;autobuffer&quot; value:@&quot;autobuffer&quot;];
+	[ element setAttribute: @&quot;autoplay&quot; value:@&quot;autoplay&quot;];
+	[ element setAttribute: @&quot;controls&quot; value:@&quot;controls&quot;];
+	
+	DOMElement* container = [self container];
+	
+    if( [ container hasAttribute: @&quot;width&quot; ] )
+		[ element setAttribute: @&quot;width&quot; value:[ container getAttribute:@&quot;width&quot;]];
+	else
         [ element setAttribute: @&quot;width&quot; value: @&quot;640&quot; ];
    
-    if( ! [ element hasAttribute: @&quot;height&quot; ] )
+    if( [ container hasAttribute: @&quot;height&quot; ] )
+	   [ element setAttribute: @&quot;height&quot; value:[ container getAttribute:@&quot;height&quot;]];
+	else
        [ element setAttribute: @&quot;height&quot; value: @&quot;500&quot; ];
-
-    [ element setAttribute: @&quot;flashvars&quot; value: nil ];
 }
 
 - (void) _convertToMP4Container
@@ -1296,7 +1299,7 @@ didReceiveResponse:(NSHTTPURLResponse *)response
 
 - (void) _convertToMP4ContainerAfterDelay
 {
-    DOMElement* newElement = (DOMElement*) [ [self container] cloneNode: NO ];
+	DOMElement* newElement = [[[self container] ownerDocument] createElement:@&quot;video&quot;];
     
     [ self _convertElementForMP4: newElement ];
     </diff>
      <filename>Plugin/Plugin.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6370e2f19fd1d4c2232d8dbcfc9ba31d49fe5b5f</id>
    </parent>
  </parents>
  <author>
    <name>Andreas Fuchs</name>
    <email>asf@boinkor.net</email>
  </author>
  <url>http://github.com/rentzsch/clicktoflash/commit/66fd859dc187d8928b9c501f1c66e6f73bde16c5</url>
  <id>66fd859dc187d8928b9c501f1c66e6f73bde16c5</id>
  <committed-date>2009-08-14T10:58:55-07:00</committed-date>
  <authored-date>2009-08-14T10:58:55-07:00</authored-date>
  <message>Use HTML5 video element instead of QuickTime to play h.264 YouTube films.

Embedding QuickTime player in a web page results in ugly element overlaps
when z-indexes are involved: Breakage we can avoid if we use the &lt;video&gt;
element. Besides, this is the way of the future (-:

This change requires a recent WebKit (Tested in Safari 4).</message>
  <tree>c02450427e36c5f0a32e85caad6ec58337a87a2e</tree>
  <committer>
    <name>Andreas Fuchs</name>
    <email>asf@boinkor.net</email>
  </committer>
</commit>
