title: Android: playing youtube video on Webview
body: <p>i've a problem to playing youtube video on a WebView. It's all day i reading question and answer on how to do this, but it doesn't work. <strong>I've already set the Manifest</strong> and this is the code i'm using</p>
  
  <pre><code>mWebview.setWebViewClient(new WebViewClient() {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              return false;
          }
      });
  
  
      mWebview.getSettings().setPluginState(WebSettings.PluginState.ON);
      mWebview.setWebChromeClient(new WebChromeClient());
      mWebview.getSettings().setJavaScriptEnabled(true);
      mWebview.getSettings().setAppCacheEnabled(true);
      mWebview.setInitialScale(1);
      mWebview.getSettings().setLoadWithOverviewMode(true);
      mWebview.getSettings().setUseWideViewPort(true);
  
      //webSettings.setLoadsImagesAutomatically(true);
      //webSettings.setSupportZoom(false);
  
      mWebview.loadUrl("https://www.youtube.com/embed/MYVIDEOID");
  </code></pre>
  
  <p>and what's happen is <a href="https://i.stack.imgur.com/XZTig.png" rel="noreferrer">this</a> i can click the play button the timer start but i can see nothing.</p>
  
  <p><strong>EDIT:</strong> 
      The problem seems on the emulator and not on real device, check the comment for the answer. </p>