javascript - flowpayer 无法在 Android 设备上运行。 (需要 Flash 版本 10,1 或更高版本)

标签 javascript android html flash flowplayer

我使用的是flowplayer 3.2.12版本。

在所有浏览器、设备(Android 设备除外)上一切都运行良好。

在 Android 设备上测试时,我收到一条消息,但播放器无法工作:

"**Flash version 10, 1 or greater is required**

**You have no flash plugin installed**

**Click here to download latest version**"

此消息出现在所有 Android 设备上,我一直在引用所有与 Flowplayer 相关的文档,但都是在静脉中。

据此flowplayer documentation ,我尝试将 xpressInstall 设置为 null,但这也不起作用。

例如,您可以 check this video on an android device

http://flash.flowplayer.org/demos/standalone/toolbox/flashembed/flowplayer.html

有没有人有幸找到此 Flowplayer - android 问题的任何解决方案。

提前致谢。

最佳答案

找到了针对 Android 设备问题的修复方案,并且经过测试,在所有设备上都能完美运行。

关键是在为flowplayer设置脚本后添加android/i navigator.userAgent:

ipad({simulateiDevice: /android/i.test(navigator.userAgent)});

使用设备修复进行设置:

$(document).ready(function() {

        $f("player", {
            src: "/PATH/TO/FLOWPLAYER/flowplayer.commercial-3.2.10.swf",
            wmode: 'opaque'
        }, {
            key: '#$09ce03a35b17ee17229'
        }).ipad({ simulateiDevice: true, controls: false });
    }
    else {
        $f("player", {
            src: "/PATH/TO/FLOWPLAYER/flowplayer.commercial-3.2.10.swf",
            wmode: 'opaque'
        }, {
            key: '#$09ce03a35b17ee17229'
        }).ipad({simulateiDevice: /android/i.test(navigator.userAgent)});

});

关于javascript - flowpayer 无法在 Android 设备上运行。 (需要 Flash 版本 10,1 或更高版本),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24549227/

相关文章:

javascript - 向 $resource 原型(prototype)添加一个函数

Android:有什么好的解决方案如何验证编辑框

html - 具有两列的 Css 流体布局

html - 为什么 IE9 将我的 HTML5 block 级元素显示为内联?

JavaScript - 从数据库中获取值并传递给 res.render

javascript - 传单:同一页上的多个 map

android - 在 Firebase 中如何通过单个查询返回多个项目?

android - 在 ADT 图形编辑器中同时显示多种屏幕类型?

php - 为什么将posted变量打印到html代码中会导致XSS?

javascript - 如何使用 JavaScript 从文本框中检索数据?