片头跳过按钮

  抱歉,此页面正在等待翻译成土耳其语

Create your custom element in the player. For example, the text button "Skip credits". Please, specify skip as the command

Now this element will be displayed only within the time intervals that need to be passed by the skip parameter in the code of the player or playlist (in seconds).

let player = new Playerjs({id:"player", file:"video.mp4", skip:"5.3-10,35-37.4"});

The button will be displayed from 5.3 to 10 seconds and from 35 to 37.4. Clicking on it will rewind playback to the end of the current interval. If the skip parameter is not specified, the button will always be hidden.

Countdown

You can enable the countdown for skipping automatically. Just add a number of seconds after the skip command. For example, the skip5 command will turn on the countdown for 5 seconds. You can also create an element with the cancelskip command, which will cancel the auto skipping.

The second skip button

The skip button described above can be only one. If you need to make several different buttons, try creating a separate element and setting up a display time limit.


19.10.26
2024 © PlayerJS

登录

登录

免费注册

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

恢复密码

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