title: All video id of youtube is not playing in webview?
body: <p>I am using a WebView Class for playing the youtube video.</p>
  
  <p>Code snippet:</p>
  
  <pre><code>public class WebViewPlayer extends Activity {
  
      private WebView engine;
      private String video_id = "bIPcobKMB94";
      // private String video_id ="Q-GLuydiMe4";  // **Not Playing**
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          this.requestWindowFeature(Window.FEATURE_NO_TITLE);
          setContentView(R.layout.activity_web_view_player);
  
          engine = (WebView) findViewById(R.id.webview);
  
          engine.setWebViewClient(new WebViewClient());
  
          engine.getSettings().setAllowFileAccess(true); 
          engine.getSettings().setJavaScriptEnabled(true);
  
          engine.loadUrl("http://www.youtube.com/embed/"+video_id+"?autoplay=1");
      }
  } 
  </code></pre>
  
  <p>In this code video_id which is commented, is not playing in the WebView. After the buffering a message is shown : </p>
  
  <p><strong><em>"This video contains content from VEVO. Is is restricted from playback on certain sites. Watech On Youtube"</em></strong></p>
  
  <p>Please have a look on this. And suggest me what should I do ?</p>
  
  <hr>
  
  <p><strong>EDIT 1:</strong></p>
  
  <pre><code>engine = (WebView) findViewById(R.id.webview);  // Vevo restriction but Zooming Capability
          engine.setWebChromeClient(new WebChromeClient());
          engine.getSettings().setAllowFileAccess(true); 
          engine.getSettings().setJavaScriptEnabled(true);
          engine.getSettings().setPluginState(PluginState.ON);
          engine.setWebViewClient(new WebViewClient());
          engine.setBackgroundColor(0x00000000);
          engine.getSettings().setBuiltInZoomControls(true);
          String html = "&lt;iframe width='420' height='345' src='http://www.youtube.com/embed/bIPcobKMB94' frameborder='0' allowfullscreen&gt;&lt;/iframe&gt;";
          engine.loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);
  </code></pre>
  
  <p>But when I pass the video_id = "Q-GLuydiMe4". VEVO restricted content will display on it.</p>
  
  <p><strong><a href="https://www.youtube.com/embed/Q-GLuydiMe4" rel="nofollow">Vevo id link</a> this is not playing</strong> </p>
  
  <hr>
  
  <p><strong>EDit 2</strong></p>
  
  <p>I checked with all setting for webview</p>
  
  <ul>
  <li>engine.getSettings().setJavaScriptEnabled(true);</li>
  <li>engine.getSettings().setAppCacheEnabled(true);</li>
  <li>engine.getSettings().setDomStorageEnabled(true);</li>
  <li>engine.getSettings().setAllowContentAccess(true);</li>
  <li>engine.getSettings().setAllowFileAccessFromFileURLs(true);</li>
  <li>engine.getSettings().setAllowUniversalAccessFromFileURLs(true);</li>
  <li>engine.getSettings().setBlockNetworkLoads(true);</li>
  <li>engine.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);</li>
  <li>engine.getSettings().setPluginState(PluginState.ON);</li>
  <li>engine.getSettings().setUseWideViewPort(true);</li>
  </ul>
  
  <p><strong>But still video is not run in the WebView</strong></p>
  
  <p>Please suggest me what should i Do ??? <strong>have anyone aware from this thing</strong></p>