Video is not rendering in full screen in webview once changing the device mode from potrait to landscape
<p>I am playing the video from youtube in android webview. Once i am changing the device mode from potrait to landscape, its not displaying in full screen, even i am setting the  height and width of video view  at runtime according to device mode.</p>

<p>My Code is :</p>

<p>WebView mWebView = new WebView(this);</p>

<pre><code>    WebView mWebView = (WebView) findViewById(R.id.test_webview);
    mWebView.getSettings().setJavaScriptEnabled(true);
    mWebView.getSettings().setPluginsEnabled(true);
    mWebView.getSettings().setPluginState(PluginState.ON_DEMAND);
    mWebView.getSettings().setUseWideViewPort(true);
    mWebView.getSettings().setLoadsImagesAutomatically(true);
    mWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
    mWebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);



    String summary = "&lt;html&gt;&lt;body style='background-color: rgb(38,38,38);'&gt;&lt;video controls='' autoplay='' style='margin: auto; position: absolute; top: 0; right: 0; bottom: 0; left: 0;' name='media' src=http://www.youtube.com/watch?v=bqd491U4XEs&gt;&lt;/video&gt;&lt;/body&gt;&lt;/html&gt;";

        mWebView.loadData(summary, "text/html", null);


}
</code></pre>
