Tlačítko přeskočení titulků

  Omlouváme se, tento článek je dostupný v angličtině

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.

Setting up a skip by the user

You can give users the ability to run each video in the playlist from a specific time to skip titles, ads and etc. To do this, select the Skip option in one of the settings menu items of the full version of the builder PRO

The skip time setting will appear in the menu.

To remember the settings, add a unique cuid parameter to the player code. In this case, after the user returns, the skip time is saved.


20.0.0
2024 © PlayerJS

Přihlášení

Přihlášení

Založte si účet

Registrace
Registrací souhlasíte s Podmínkami služby
Přihlášení, pokud máte účet.

Obnovení hesla

Obnovení
Zapomněli jste e-mail? Kontakt