title: How to embed a YouTube clip in a WebView on Android
body: <p>Can anyone shed any light on why I'm unable to click and play a youtube clip on an Android handset when placed inside a webview?</p>
  
  <p>I've put a very simple app together (it's being extended, but no right away) and it has a web view assigned using the Android SDK.</p>
  
  <p>The rest of the webview works as expected (text, images, css etc), however, the YouTube clips will not show, they just show as black or white rectangles (where the video embed should be).</p>
  
  <p>We use the same view to display content on the iPhone app equivalent, without any issues.</p>
  
  <p>This is using a basic flash embed, the Safari browser on iPhone converts these to H.264 and plays them nicely in QuickTime.</p>
  
  <p>Can Android do the same??</p>
  
  <p>Here is the embed code, as an example....</p>
  
  <pre><code>&lt;object width="120" height="73"&gt;
      &lt;param name="movie" value="http://www.youtube.com/watch?v=ZVYIBIlTIQs&amp;feature=youtube_gdata"&gt;&lt;/param&gt;
      &lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
      &lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;
      &lt;embed src="http://www.youtube.com/watch?v=ZVYIBIlTIQs&amp;feature=youtube_gdata" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="120" height="73"&gt;&lt;/embed&gt;
  &lt;/object&gt;
  </code></pre>