JW Player: cross-browser "display:none" player behavior
Posted
by two7s_clash
on Stack Overflow
See other posts from Stack Overflow
or by two7s_clash
Published on 2010-04-28T17:45:09Z
Indexed on
2010/05/07
18:48 UTC
Read the original article
Hit count: 471
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.
© Stack Overflow or respective owner