问题描述
在我编写的一个小型 WebView 应用程序中,我能够加载 YouTube 并查看代表视频剪辑的图片,以及应该开始播放视频的熟悉的向右箭头:
In a small WebView app I wrote, I am able to load YouTube and see the picture the represents a video clip, with the familiar right-pointing arrow that is supposed to start playing the video:
但是...当我触摸那个箭头时,什么也没有发生(视频没有播放).
But... when I touch that arrow, nothing happens (the video is NOT played).
我确实在 WebView 中启用了插件设置,但这没有帮助:
I did enable the plugins setting in WebView, but that didn't help:
mWebView.getSettings().setPluginsEnabled(true);
所以,我搜索了更多关于如何让 Flash (YouTube) 嵌入在我的 WebView 中运行的线索,我发现了以下 提示:
So, I searched for more clues about how to make Flash (YouTube) run embedded in my WebView and I found the following hint:
我认为你也需要 Flash安装,就像在 Android 2.2 和
我对 Android 2.2 的要求没问题,但我不明白安装 Flash 插件"是什么意思:YouTube 在 Android 的默认浏览器(基于 WebView AFAIK)以及 YouTube 应用程序中播放良好也安装在我的设备中.不是说已经安装了Flash插件吗?
I am OK with the requirement for Android 2.2 but what I don't understand is what "install Flash plugin" means: YouTube plays fine in Android's default browser (which is based on WebView AFAIK) and also in the YouTube app that's also installed in my device. Doesn't that mean that the Flash plugin is already installed?
如果答案是否",我需要做什么来安装它?
If the answer is "no", what do I need to do to install it?
推荐答案
适用于 Android 2.2+ 设备的 Android Market 提供了 Adobe Flash 插件.它可能会预装在一些设备上,但在大多数设备上并没有.
The Adobe Flash plugin is available from the Android Market for Android 2.2+ devices.It may come pre-installed on a few devices, but on most it does not.
在 Android 市场中搜索Adobe Flash"进行下载,然后再次尝试运行您的应用.
Search for "Adobe Flash" in the Android market to download it, then try running your app again.
这篇关于什么是“安装 Flash 插件"?在 WebView 中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!