Element visibility

You can hide any element of the player in the player settings. In the PRO there are many options that allow you to implement any logic. You can include them in any combination.

You can hide the element in the code if you enable the option if the parameter is specified and specify the invented name of the variable.

If you specify this variable in the code, the button will no longer be displayed.

var player = new Playerjs({id:"player", file:"video.mp4", killbutton:1});

Control outside

You can control the visibility of an element from the outside by giving it an ID and toggle via JS. In this case, the element must be located on its own (not on the control panel).

document.getElementById("element_ID").style.display = "none";

2024 © PlayerJS

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Restore password

Forgot email? Contact us