I am android developer & try to build a android application.This application load a web view(Which show a web-page).In this page there have some youtube video.When i load this page by web-view .It work perfectly.But when i try to play those video.then id don't able to show video and can't play the video .I can't understand what is error my code.Please check my code.
webView = (WebView) findViewById(R.id.webView1);
WebSettings webSettings = webView.getSettings();
webView.setWebViewClient(new WebViewClient());
webView.setWebChromeClient(new WebChromeClient());
webView.clearCache(true);
webView.clearHistory();
webSettings.setJavaScriptEnabled(true);
webSettings.setUseWideViewPort(true);
webSettings.setUseWideViewPort(false);
webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
webView.loadUrl(url);
Mobile screenshot :
If anyone know what is issue? Why it don't able to load video .please help to me.Thanks to all.
Aucun commentaire:
Enregistrer un commentaire