颜色变量

  抱歉,这篇文章有英文版

You can change the color of the player interface in the code or via the API. Just set the color variables in the PRO settings Service / Color variables

Then you place color variables for any UI elements.

The values can be changed in the player code.

let player = new Playerjs({id:"player",file:"video.mp4",color1:"#ff0000"});

Also you can use API.

player.api("color2","#ffff00");

Example with a free skin:

Blur

There is an important feature of setting color variables if you use the effect of blurring the background of various elements. In this case, the opacity should be set in the settings of the color variable, not the element whose background is blurred.


20.0.0
2024 © PlayerJS

登录

登录

免费注册

注册
注册即表示您同意服务条款
登录(如果您有帐户)

恢复密码

恢复
忘记电子邮件?联系我们