
JWPlayer 6.8 doesn't reliably go to audio mode
We are trying to use the player for audio files, displaying just the controlbar (with horizontal volume control).
This works fine on simple cases, however on our pages frequently the player displays in video mode instead of audio mode, in spite of the setting height:30.
The problem seems related to the fact that our pages have parts initially not shown, made visibile later on, via javascript and css.
Here is a very simplified example showing the problem:
1) http://www-acc.esa.int/temp/audio_embed_0.html
This is a few line page working as expected, with two players for two audio files.
2) http://www-acc.esa.int/temp/audio_embed_1.html
This is like the previous case, but the "div" containing the players is not initially displayed,
it becomes visible only after clicking on the html button labelled "show".
Here we have the problem. The players work, but they show the "video" interface, not the "audio" one:
the volume control is vertical, the control bar has a default margin, etc. etc.
Notes:
1. The problem shows up independently on the used skin, and independently on using free or premium jwplayer edition.
2. There seem to be workarounds, like issuing jwplayer().setup() only after the player has become visible on the page, but this is not easily applicable to our full pages (built via a cms) since we may have several html containers that may be hidden or shown, and it's not clear where to move jwplayer().setup() in order to always avoid the problem.
So, is there a way (in addition to what we already have: the height setting to 30) to ensure that
the embedded player switches to audio mode?