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

JWplayer7 - Hide controlbar when video ends


Hi,

currently, when a videoplayback ends - the replay-button, posterimage and controlbar will be shown. How can i remove the controlbar (not replay-button). I used a simply jquery.hide() on the jw-controlbar class when playerInstance.on('complete') is reached, but when someone replays the video in the same instance, the controlbar is hidden "for ever". Is there a simple settings option for this one?

3 Community Answers

Alex

JW Player Support Agent  
1 rated :

Hi,

After playing around with this for a while, I found that the easiest thing to do is to change the class for the state the player is in after the .on(“complete”) event fires. Please take a look at the link below and you’ll see that when the content finishes playing, normally a .jw-state-complete class gets added to the player which gives you the replay icon and control bar. The code example I provide removes that class and adds .jw-state-idle, which is the class given to the player when it first loads on the page. Note, however, that a Play button will appear instead of a Replay button.

Example – http://qa.jwplayer.com/~abussey/63327-hide-bar.html

Please let me know if you need any more help or have any other questions.

Thank you!

dk N/A

User  
0 rated :

Nice. Thank you for you solution. Works good for me =)

Alex

JW Player Support Agent  
0 rated :

Not a problem!

This question has received the maximum number of answers.