JW Player:跨浏览器“display:none”玩家行为 [英] JW Player: cross-browser "display:none" player behavior

查看:152
本文介绍了JW Player:跨浏览器“display:none”玩家行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单的前期方法让FF和IE处理隐藏的JW播放器是一样的吗?



我将播放器的不同实例动态地放置在jQuery生成的标签。实际上,切换标签会隐藏每个播放器的父div。在FireFox,标签开关和伴随显示更改停止播放器。这不会发生在IE。我想要。



使这两种浏览器的行为都是一样的最简单的方法是什么?我希望一个CSS / HTML解决方案,无论是通过玩家嵌入的方式或样式规则。否则,我想我需要添加一个项目监听器,比较当前选择的标签id与当前活动的玩家...但我'



编辑 :所以,我宁愿能够改变播放器CSS或标签更改的标记比发送停止事件到所有玩家,但在当前活动选项卡中的玩家。

解决方案

这是Internet Explorer的问题。虽然FF,Chrome和Safari会杀死Flash,但IE不会。我们能够确保玩家停止的唯一方法是跟踪网页上所有活跃的玩家,并呼叫停止。



最好,



Zach



开发者,LongTail视频


Is there a simple, upfront method to have FF and IE treat hidden JW Players the same?

I am placing different instances of the player dynamically in jQuery generated tabs. In effect, switching tabs hides the parent div of each player. In FireFox, the tab switch and accompanying "display" change stops the player. This doesn't happen in IE. I would like it to.

What is the easiest way to have both browsers act the same? I am hoping for a CSS/HTML solution, either thorough the way the players are embedded or a style rule Otherwise I suppose I will need to add an item listener that compares the currently selected tab id to currently active players... but I'd rather not go that route.

Thanks for your tips!

EDIT: So, I'd rather be able to change the player CSS or markup on tab change than send stop events to all the players but the player in the currently active tab.

解决方案

This is an issue with Internet Explorer. While FF, Chrome, and Safari will kill Flash, IE doesn't. The only way we've been able to ensure that the player stops is to keep track of all active players on the page and call stop.

Best,

Zach

Developer, LongTail Video

这篇关于JW Player:跨浏览器“display:none”玩家行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆