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

Hide control bar, but keep pause/stop upon click


Hello JWPlayer support,

I would like to hide control bar and keep pause/stop upon click behaviour.
I tried `controls: false`, but it removes pause/stop upon click feature as well.

I understand if you don't have direct configuration option which support this.
May be there is some other way via API. Please suggest. Thanks.

2 Community Answers

Todd

JW Player Support Agent  
0 rated :

You could create your own pause button using the API’s play() call, or you use the onDisplayClick() call to then call play(). Here’s a code example of the second option:

jwplayer().onDisplayClick(function(){
jwplayer().play();
});

Hope this helps,
Todd

jim

User  
0 rated :

Thank you

This question has received the maximum number of answers.