title: How to play YouTube video inside Android WebView?
body: <p>I am making RSS reader application, and I get RSS data from URL, and that RSS data can contain link to YouTube video. </p>
  
  <p>Here is an example how link to youtube vide looks like:</p>
  
  <pre><code>div class="video-shortcode"&gt;&lt;iframe title="YouTube video player" width="600" 
  height="350" src="http://www.youtube.com/embed/HXrcUyCVA6c"
  frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And when I run my application, there is no video, its all black, and I can't play it.</p>
  
  <p>How I can play video inside WebView?</p>
  
  <p><strong>EDIT:</strong>
  Here is the result:</p>
  
  <p><img src="https://i.stack.imgur.com/3ekd3.jpg" alt="enter image description here"></p>
  
  <p>Here is my code:</p>
  
  <pre><code> // set webview properties
      WebSettings ws = desc.getSettings();
      ws.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
      ws.getPluginState();
      ws.setPluginState(PluginState.ON);
      ws.setJavaScriptEnabled(true);
      ws.setUserAgent(0);
      ws.setJavaScriptCanOpenWindowsAutomatically(true);
  
      desc.setWebChromeClient(new WebChromeClient() {
      });
      desc.loadDataWithBaseURL("http://www.balkanandroid.com/", feed
      .getItem(pos).getContent(), "text/html", "UTF-8", null);
  </code></pre>
  
  <p>I have android:hardwareAccelerated="true" in my AndroidManifest.xml.</p>