Player: Allow setting the end time
Ziggeo
There is a parameter
initialseek
that allows players to be set to have the starting point at any number of seconds after the start.Idea is to allow setting when the playback should stop as well or after which time the playback should not be possible.
Original request was asked for either time range support (initialseek as from and then time for how long to play back the video), or to have a "to" parameter that plays to that specific point in time and does not require initialseek.
Ziggeo
This is currently possible by setting up
initialseek
as start, and then by listening to our player eventsYou would need to subscribe to
playing
and depending on your setup to paused
and seek
events as well. Then you would need to add your own counter through JS. One example would be to use setTimeout that would fire and stop the playback after specific number of seconds. If the controls are enabled for your player, you would need to use setInterval instead with 1 second step which would be paused if paused event is fired and continued on next playing
.