javascript - ipad/ipod touch 上的 flowplayer 视频无法使用 ipad 插件在 drupal7 中工作 - 字节范围 header 问题

标签 javascript iphone ipad drupal flowplayer

我已使用 video 成功将 Flowplayer 集成到我的 Drupal 安装中和 flowplayer 。我将 flowplayer 文件升级到最新版本 3.2.7,一切正常,但在 iPad - iPod Touch 上不行。

我加载了iPad的js plugin在 Flowplayer 模块中如下所示:

drupal_add_js(drupal_get_path('module', 'flowplayer') . '/flowplayer/example/flowplayer.ipad-3.2.2.js');

我发现它加载得很好。

然后在 Flowplayer js 中我有这一行

$(selector + ':not(.flowplayer-processed)').addClass('flowplayer-processed').flowplayer(settings.basePath + settings.flowplayerSwf, config);

我这样改变了它:

//I added the first line because in  the example it worked that way
$(selector + ':not(.flowplayer-processed)').attr('url', config.clip.url);
$(selector + ':not(.flowplayer-processed)').addClass('flowplayer-processed').flowplayer(settings.basePath + settings.flowplayerSwf, config);
//then i add ipad support (the selctor is hardcoded to maike things work)
$f('flowplayer-video').ipad();

这样,在我的 iPod touch 上(我认为在 iPad 上也是一样),我可以看到播放器,但视频无法启动(存在某种被阻止的覆盖)。

您可以查看网站here

编辑 - 现在,由于泰迪的建议,我可以正常工作了。现在我将尝试找出如何设置我的脚本,以便它返回 byte-range header 。

如果有人知道如何执行此操作,请在此处发帖。

最佳答案

向 iPad 提供实际 MP4 视频的服务器必须支持名为 byte-range 的 HTTP header 。

我会尝试使用来自另一台服务器的备用视频源,作为概念验证,看看这是否是问题的原因。

这是一个带有 byte-range header 的 MP4 视频:http://mediaelementjs.com/media/echo-hereweare.mp4

关于javascript - ipad/ipod touch 上的 flowplayer 视频无法使用 ipad 插件在 drupal7 中工作 - 字节范围 header 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6441680/

相关文章:

javascript - 获取ajax请求响应node.js

iphone - Objective-C 和 ARC : Why value stored to during its initialization is never read?

iphone - 创建笔记 View 的最佳方法

ipad - swift iPad 表格 View 不透明

iphone - 消耗品应用内购买和恢复按钮

xcode - iPad 不会运行在 Xcode 中构建的应用程序 & 它在构建后立即完成

javascript - var_dump($_POST) 在将表单提交到 codeigniter Controller 后不返回任何内容

javascript - 从javascript中的字符串中提取所有数字

javascript - javascript 中的当前日期

iphone - CFRelease 但仍然泄漏