Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Progress bar occupying whole area of the player


Hi,
I have a problem with JW Player in two different browsers. In Firefox and Chrome the progress bar occupies the whole area of the player and it only fits correctly when I click in inspect element.

The song plays normally.

I'm using DSpace 3.2 XMLUI.

Here's my URL: http://146.164.35.247/xmlui/handle/123456789/52905

Note: To see the player, user must click in yellow and blue icon.

Here's the code:
<xsl:variable name="caminho" select="substring-before(mets:FLocat/@xlink:href,'?sequence=')"/>
<div id="myElement">Loading the player...</div>

<script type="text/javascript">
jwplayer("myElement").setup({
height: 40,
file: "<xsl:value-of select="$caminho"/>",
});
</script>

Thanks in advance.

3 Community Answers

juliobarbieri

Best Answer 

I could figure it out, was the style of the div hidden at first.

style="display:none;"

So strange, kind of weird, but I think we can live without that.

Thanks for the tip.

View in conversation

MisterNeutron

User  
1 rated :

I thought it might be a CSS conflict, but in IE11, I'm getting an "Error loading player - no playable sources found" message, rather than a mangled controlbar. That would indicate that there's a timing problem with loading the source.

Start with a simpler case - build a page that contains just the player, plus your routine for providing the player with the file name, without any of the other stuff. Get that working first.

juliobarbieri

Best Answer  User  
0 rated :

I could figure it out, was the style of the div hidden at first.

style="display:none;"

So strange, kind of weird, but I think we can live without that.

Thanks for the tip.

MisterNeutron

User  
0 rated :

Glad you found it. That was a tough one, because as soon as I invoked the developer tools in either Chrome or FF, the problem disappeared! It was like trying to see the back of your head in a mirror by turning around really, really fast. ;)

This question has received the maximum number of answers.