Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created July 19, 2012 00:10
Show Gist options
  • Save mahemoff/3139852 to your computer and use it in GitHub Desktop.
Save mahemoff/3139852 to your computer and use it in GitHub Desktop.
jPlayer Gotcha
I couldn't get jPlayer to play on Firefox.
At first, I thought it must be the fact that Firefox needs Flash (for MP3s) and Chrome doesn't. So I was trying to check the SWF is loading and then the config.
Finally, I realised it was visibility of the player element. So yes, this might be something to do with Flash. But the point is, the player must be on displayed (not `display: none`). Which is tricky if you want the player to slide down...means you need to use various tricks instead of just a slideDown() or CSS animation.
Anyway, it plays now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment