title: How to play video inside WebView android with link from google drive
body: <p>Im writing code to show video from webview which link is from google drive, but i cant play the video</p>
  
  <p><a href="https://i.stack.imgur.com/S06uF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S06uF.png" alt="enter image description here"></a></p>
  
  <p>And this is my code looks like</p>
  
  <pre><code> WebView webView = (WebView) child.findViewById(R.id.webview_player_view);
   WebSettings webSettings = webView.getSettings();
   webView.setWebViewClient(new WebViewClient());
   webSettings.setJavaScriptEnabled(true);
   webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
   webSettings.setPluginState(WebSettings.PluginState.ON);
   webSettings.setMediaPlaybackRequiresUserGesture(false);
   webView.setWebChromeClient(new WebChromeClient());
  
   webView.loadUrl(fact.getValue());
  </code></pre>
  
  <p>Is there a way to fix it?</p>
  
  <p>Note : fact.getValue is the google drive url</p>