I am building an article reading android application like TechCrunch.
In the application, the data is parsed by json volley like id, article, images and content.
I am loading content html string in webview which contains text,images and videos.
Text,images and video iframe are displaying fine, but I click on any video, nothing happens.
This is my iframe code in html content:
This is my code:
String htmldata = "<html><style = text/css>
img{width:100%!important;height:auto!important;}iframe, .video-container object, .video-
container embed {max-width:100%;max-height:100%;}a { color:#3366CC; text-decoration: none; }
</style><body style = line-height:25px; >"+c+"</body></html>";
web1 = (WebView) findViewById(R.id.webView2);
web1.setWebViewClient(new myWebClient());
web1.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
web1.getSettings().setJavaScriptEnabled(true);
//web1.getSettings().setJavaScriptEnabled(true);
//web1.setInitialScale(65);
web1.getSettings().setDefaultFontSize(18);
//web1.loadUrl(htmldata);
web1.loadData(htmldata,"text/html; charset=utf-8",null);