我使用的是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/