如何限制播放时间

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

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).

The end command can specify negative values from version 18.2 and the player will cut off playback from the end. end:-1 will cut off one second.

These parameters can also be specified in the playlist. You can set the playlist's start option to continue and playback continues after switching the file.


19.12.2
2024 © PlayerJS

登录

登录

免费注册

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

恢复密码

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