在Webview中显示视频

时间:2014-09-09 16:47:53

标签: android video webview

如何在网页浏览中在iframe中显示视频? 现在我只听到音频,但视频是黑色的,为什么?

WebView wb = (WebView) dialog.findViewById(R.id.webView);
            wb.setWebChromeClient(new WebChromeClient());
            wb.getSettings().setJavaScriptEnabled(true);
            wb.loadDataWithBaseURL("not_needed",
                    "<iframe src=\"**********\" frameborder=\"0\" \"webkitallowfullscreen=\"true\" mozallowfullscreen=\"true\" allowfullscreen=\"true\"></iframe>",
                    "text/html",
                    "utf-8",
                    "not_needed");

0 个答案:

没有答案