title: How do I get the YouTube preview image to show up in an Android WebView?
body: <p>I realize there are a lot of YouTube in WebView questions but they don't seem to address my problem exactly.</p>
  
  <p>I am loading a website with an embedded YouTube clip in a WebView, the problem is the YouTube preview image does not appear, I just get a black box with YouTube at the bottom. </p>
  
  <p>This same website loads the preview image in the Android browser. The phone does not have Flash.
  <img src="https://i.stack.imgur.com/gykMj.jpg" alt="Side by Side Screenshot"></p>
  
  <p>I understand it cant play the video without flash, I don't want it to play in the WebView, I just need the preview to load like it does in the regular browser.</p>
  
  <p>I cant edit the website itself but it seems to be using this for the YouTube video.</p>
  
  <pre><code>&lt;iframe allowfullscreen="" frameborder="0" height="271"     src="http://www.youtube.com/embed/28L-hOJHwUw?rel=0&amp;amp;hd=1" width="475"&gt;&lt;/iframe&gt;&lt;/div&gt; 
  </code></pre>
  
  <p>I am enabling both Javascript and Plugins in my WebView.</p>
  
  <pre><code>webView = (WebView) findViewById(R.id.webviewplan);
  webView.getSettings().setJavaScriptEnabled(true);
  webView.getSettings().setPluginsEnabled(true);
  webView.getSettings().setBuiltInZoomControls(true);
  </code></pre>
  
  <p>Any help would be appreciated.
  Thanks.</p>
  
  <p>Edit:
  Found out that it is throwing a js error so is anyone out there able to display a YouTube embed preview in a WebView without flash, Or is this simply not possible?</p>
  
  <p>Error:</p>
  
  <pre><code>TypeError: Result of expression 'a' [undefined] is not an object. -- 
  From line 342 of http://s.ytimg.com/yt/jsbin/www-embed_core_module-vflcoqCCO.js
  </code></pre>