年龄限制

  抱歉,这篇文章有英文版

You can add any text symbol to the player screen by creating a custom element with a text type and setting its location, size, etc.

You need to set an ID for the element and enable the Hide / After a certain time option.

Using the specified ID, you can replace the text in the created element in the player code with the customtext parameter

new Playerjs({"id":"player", "file":"video.mp4", "customtext":{"age":"+8", "smoking":"Smoking..."}});

You can also specify this parameter in the playlist in the same way.

Age test

You can also create special buttons to confirm the access for the user. Create two custom elements and configure them as you want. For example:

The element that prohibits access must be assigned the block command and specify a link to go on the click. The second element that allows entry must be assigned the unblock command. You can copy this example to your account and see how it is made.

The age test works for the entire player, it cannot be assigned to a separate playlist file. But you can turn it on / off in the player code if you set the Hide / if the parameter is not specified option and manipulate in the code (you can find an example here).


20.0.1
2024 © PlayerJS

登录

登录

免费注册

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

恢复密码

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