我正在使用以下数据来显示WebView
。这些是 HTML 标签以及
指的是视频的 iframe。
现在的问题是,当我点击它时,它显示播放按钮,但无法播放视频。
我可以在里面播放这个视频吗WebView
or not?
<p></p><P> because of Jon’s pro-growth, business-friendly policies,&nbsp;Utah's economy expanded at more than triple the national rate and was named the best state for business by&nbsp;<EM>Forbes.</em><BR /><BR /><IFRAME height=241 src="http://player.vimeo.com/video/25349114" frameBorder=0 width=425></iframe></p><br />
<P>America needs a dose of the same medicine. Today, our nation has the second highest corporate tax rate in the developed world. We have convoluted and confusing regulations.
<!--break--><!--break--><p></p>
当我尝试在 Android 浏览器中运行此 url 时,它会打开 videoview 并完美播放该文件,但为什么不在 iframe 中运行?http://player.vimeo.com/video/25349114 http://player.vimeo.com/video/25349114
关键是启用浏览器插件。
// how to enable the webview plugin changed in API 8
if (Build.VERSION.SDK_INT < 8) {
mWebView.getSettings().setPluginsEnabled(true);
} else {
mWebView.getSettings().setPluginState(PluginState.ON);
}
也值得检查Flash播放器已安装 https://stackoverflow.com/questions/4617138/detect-if-flash-is-installed-on-android-and-embed-a-flash-video-in-an-activity
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)