chintan9 / plyr-react

A simple, accessible and customisable react media player for Video, Audio, YouTube and Vimeo
https://github.com/chintan9/plyr-react
MIT License
479 stars 53 forks source link

Listeners not working when using usePlyr with options #1098

Open DestroyCom opened 1 year ago

DestroyCom commented 1 year ago

Describe the bug I tried to use a timeupdate listener on usePlyr, when I just add the source object it works but when I add the options, the listener doesn't register anymore.... I tried to add the options directly on the default but its not working too

To Reproduce When I select one of my srt files, it updates the plyr source with the correct .vtt file, the plyr is reset and the listener not activated

Expected behavior When I add an option, the listener should work...

Desktop (please complete the following information):

Additional context code : https://gist.github.com/DestroyCom/1ee9a0d3f9d3ed024d56293292264f41

the-rich-piana commented 11 months ago

Not sure if I'm having the same issue, but if my VTT isn't loaded properly it appears the currentTime and "timeupdate" event listener doesn't work.