Skip to content

Listeners not working when using usePlyr with options #1098

@DestroyCom

Description

@DestroyCom

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

  • OS: MacOS Ventura 13.5.2
  • Browser Edge
  • Version 116.0.1938.76

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions