UMA*_*MAR 5 iframe android webview
我使用以下数据显示在WebView.这些是HTML标记以及引用视频的iframe.
现在问题是当我点击它时,它显示播放按钮但无法播放视频.
我可以在里面播放这个视频WebView吗?
<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>
Run Code Online (Sandbox Code Playgroud)
当我尝试在Android浏览器中运行此URL时,它会打开videoview并完美播放该文件,但为什么不在iframe中? 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);
}
Run Code Online (Sandbox Code Playgroud)
还值得检查Flash 播放器是否安装
| 归档时间: |
|
| 查看次数: |
4363 次 |
| 最近记录: |