How to limit playback time


You can limit the duration of playback with parameters start, end and remove

<script>
   var player = new Playerjs({id:"player", file:"video.mp4", start:10, end:120, remove:"33-35,123-141"});
</script>

The player will start playing from the 10 second and finish in the second minute (120 seconds). From 33 to 35 and from 123 to 141 seconds, playback will be skipped by rewinding (from version 9.53).

The delete command complements the start command and removes the ability to rewind to the specified second (works from version 11.7).

These parameters can also be specified in the playlist.


16.14.22022 © 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