How to make a credits skip button


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-10,35-37"});

The button will be displayed from 5 to 10 seconds and from 35 to 37. 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.


17.1.62022 © PlayerJS

Sign up free

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

Restore password

Restore
Forgot email? Contact us