chintan9 / plyr-react

A simple, accessible and customisable react media player for Video, Audio, YouTube and Vimeo

Home Page:https://github.com/chintan9/plyr-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instance being reset due to rerender

insertmike opened this issue · comments

Describe the bug
When attempting to retrieve state information from the Plyr instance, such as real-time data of playing state, it appears to be reset due to rerender.

To Reproduce

  1. Go to the provided CodeSandbox link.

  2. Observe the hierarchial structure

  3. Try running the player and observe what happens to its state

Expected behavior
The Plyr instance should retain its state information even during rerender, allowing users to access and utilize real-time data of the playing state without it being reset.

Additional context
Open to workarounds, someone must have hit this already..