How to get Media controls in Webview in android? <p>I am having Webview in android &amp; currently playing youtube video from the Url. top of the webview, there is an <code>actionbar</code>. I want <code>actionbar</code> to be hidden when video is playing &amp; <code>actionbar</code> to show when video is <code>onPause</code>. is there any way to get the current state of video playing inside the <code>webview</code>. or I can call <code>mediaControls</code> class in <code>webview</code>. Here is my code for webview:</p> <pre><code> mVideoView.getSettings().setJavaScriptEnabled(true); mVideoView.getSettings().setPluginsEnabled(true); mVideoView.getSettings().setAllowFileAccess(true); mVideoView.setWebChromeClient(new ChromeClient()); mVideoView.setWebViewClient(webViewClient); mVideoView.loadUrl("http://www.youtube.com/embed/" + video_id); </code></pre>