
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
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
Hi, there.
What button are you trying to remove when the player goes into fullscreen?
Thanks.
A custom button that has an ID uploadvideo
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!
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"
);
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!