videojs-playlist icon indicating copy to clipboard operation
videojs-playlist copied to clipboard

Pause on select item?

Open seabasss opened this issue 5 years ago • 2 comments

I’ve found a way to play the video when an item is clicked, but is there a way to always paus when an item is clicked, even if the previous is currently playing?

seabasss avatar Oct 24 '20 16:10 seabasss

Unfortunately, we don't have an option for that but you could potentially listen to playlistitem and call pause on the player.

gkatsev avatar Oct 29 '20 06:10 gkatsev

Thanks, I tried that earlier, but it didn't work. Something is triggering it to play after that event. I ended up adding a separate on click listener on the playlist buttons with a set timeout to pause it.

Please let me know if you can think of a better solution. Is there another event where I can put pause later in the chain?

seabasss avatar Oct 29 '20 06:10 seabasss