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

Dynamically hide/display buttons


I want to hide the fullscreen button until the user clicks the play button, and then show it again, using javascript.
How can I do it?

3 Community Answers


JW Player Support Agent  
0 rated :


You could use the inspect tool in Chrome to find the elements you want to hide, and then use the JW Player API to either show or hide the button.

Skin model:


0 rated :

Thanks George

The thing is, that these elements don't have IDs. I wanted to use jwplayer().removeButton(id), but there's only a class property. So, I just used
$(window).on('load', function (e) {
I would like to hide the button earlier, because you can still see it for a split second before it disappears.
If I try hiding it in the player's ready function or in the window ready function, it doesn't work at all, I guess the controls are only ready later.
Do you know if it's possible?


JW Player Support Agent  
0 rated :


Please send me a test page replicating the issue as described in the document below:

The test page must not contain any additional code or CSS, it must only contain the player and concrete steps to reproduce with expected and actual behavior.

This question has received the maximum number of answers.