I want show video in WebView
, and for this i want use this code :
WebSettings settings = post_content_web.getSettings();
post_content_web.setWebChromeClient(new WebChromeClient());
settings.setPluginState(WebSettings.PluginState.ON);
settings.setJavaScriptEnabled(true);
settings.setDefaultTextEncodingName("utf-8");
post_content_web.loadDataWithBaseURL("", myCustomStyleString + "<div style=\"direction:rtl\">"
+ title + "\n\n" + content + "</div>", "text/html", "utf-8", null);
With above codes i can show video but when video is playing and when click on BackPressButton
not stop this video and video play!
I want when click on BackButton
stop this video!
How can i it?