里面的WebView使用iframe标签无法播放视频? [英] Cannot play video inside WebView using iframe tag?

查看:1830
本文介绍了里面的WebView使用iframe标签无法播放视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了下面的数据在的WebView 来显示。这些是HTML标记一起 它指的是视频的iframe。

I am using the following data to display in a WebView. These are the HTML tags along with the iframe which is referring to a video.

现在的问题是,当我点击它,它显示的播放按钮,但不能播放视频。

Now the problem is when I click on it, it shows the play button but cannot play the video.

我可以玩里面的的WebView 或不是该视频?

Can I play this video inside WebView or not?

<p></p><P> because of Jon’s pro-growth, business-friendly policies, Utah's economy expanded at more than triple the national rate and was named the best state for business by <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>

当我尝试在它打开videoview和完美,但为什么不能在iframe中扮演该文件在Android浏览器中运行这个网址? http://player.vimeo.com/video/25349114

when I try to run this url in the android browser it opens videoview and plays that file perfectly but why not in iframe? http://player.vimeo.com/video/25349114

推荐答案

最关键的事情是让浏览器插件。

The key thing is to enable browser plugins.

// 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);
}

另外值得一检查<一href="http://stackoverflow.com/questions/4617138/detect-if-flash-is-installed-on-android-and-embed-a-flash-video-in-an-activity">flash播放器安装

这篇关于里面的WebView使用iframe标签无法播放视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆