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

When fullscreen remove button


I don't know javascript that well.
I see the events .onfullscreen and also .removebutton
How is it written to say that when the user goes fullscreen to remove the button, if the button id is "uploadvideo"
Thanks

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

What button are you trying to remove when the player goes into fullscreen?

Thanks.

mark

User  
0 rated :

A custom button that has an ID uploadvideo

Alex

JW Player Support Agent  
0 rated :

Hi, Mark.

You should be able to do this by calling the .on(“fullscreen”) function and then calling .removeButton(“uploadvideo”) as the callback within that function.

.on(“fullscreen”) is the new syntax for the API for JW Player 7. You can read more about the differences between the API for JW 6 and 7 here.

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

Thank you!

mark

User  
0 rated :

Hi Alex
I don't know JavaScript that's why I asked for how it is written

This is what I have already to call the button. Perhaps you could piece the remove on full screen part in for me. Just one wrong comma and I am never gonna work it out. Cheers

jwplayer().addButton(
"https://domainname/file_add.png",
"Upload",
function() {
$(".uploadmobile").slideToggle();
},
"upload"
);

Alex

JW Player Support Agent  
0 rated :

Hi, Mark.

We are only setup to provide support for built-in functionality of JW Player. Writing custom code for customers is not a service that we offer. We hope you understand.

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

Thank you!

This question has received the maximum number of answers.