flowplayer 类“playing”和“暂停”不被尊重

发布于 2024-11-16 08:42:57 字数 924 浏览 4 评论 0 原文

我已经在 flowplayer 插件rel="nofollow">我的网站,带有播放列表和控制插件。

当播放器经历不同的状态(加载电影、播放、暂停)时,它应该动态地将类设置为当前正在处理的 DOM 对象(通常是 元素。

只要 (class="progress"),因此可以通过一组特定的 CSS 使此状态可见(目前为红色边框)。

当播放器正在加载电影时 被播放,播放器应该删除class="progress" 确实如此,并将其替换为 class="playing" - 尽管

为电影 付出了无数努力,但这里我失败了。当前正在播放或暂停,底层 元素的类未设置为 class="playing"class="paused" 并且与这些状态相关的 CSS 集不会显示(绿色和青色为了测试,

我尝试实现 flowplayer 的手动播放列表 演示页面从 flowplayer 的服务器调用时工作正常(尽管事实上 - 查看 html 源 - 我观察到缺少所有标头标签和打开正文标签),但在我的开发(XP、netbeans)和实时(服务)中显示了相同的描述行为提供商)环境 - 我只是无法让此功能在 Google Chrome、IE7 或 IE8 中工作。

有人以前有过这种行为,可以给我一些指导吗?

I have implemented a flowplayer plugin into my website, with playlist and control plugins.

While the player goes through different statuses (loading movie, playing, pausing) it should dynamically set classes to the DOM object it is currently working on (usually an <a> element.

This works fine as long as the player is loading a movie (class="progress"), so this status can be made visible via a certain set of CSS (red border for now).

After the movie is loaded and started to be played, the player should remove class="progress" which it does, and replace it by class="playing" - and here I fail despite countless efforts.

For movies currently being played or paused, the class of the underlying <a> element is not set to class="playing" or class="paused" and the CSS sets pertaining to these statuses are not displayed (green and cyan borders for the sake of testing).

I tried to implement flowplayer's manual playlist demo page which works fine when called from flowplayer's server (despite the fact that - viewing the html source - I observe missing all header tags and opening body tag), but shows the same described behaviour in my development (XP, netbeans) and live (service provider) environments - I just can't get this feature to work in Google Chrome, IE7 or IE8.

Anyone had this behaviour before and can give me some guidance?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自由范儿 2024-11-23 08:42:57

flowplayer 播放列表插件使用属性选择器 $("[href="+url+"]"); 但它不会按照要求将值放在引号中。我玩弄了 jsfiddle,这显然在 jQuery 1.4.x 中有效,但在 jQuery 1.5 中失败。您的网站使用的是后者,但 flowplayer 演示网站使用的是 1.4.2。您可以尝试回滚 jQuery 版本并看看是否会有所不同?显然,最佳解决方案是纠正播放列表插件中的错误。

The flowplayer playlist plugin uses an attribute selector $("[href="+url+"]"); however it doesn't put the value in quotes, as is required. I toyed around with jsfiddle and this is apparently valid in jQuery 1.4.x, but fails in jQuery 1.5. Your site is using the latter, but the flowplayer demo site is using 1.4.2. Could you try rolling back the jQuery version and seeing if that makes a difference? Obviously the optimal solution would be to correct the bug in the playlist plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文