plyr-react icon indicating copy to clipboard operation
plyr-react copied to clipboard

Instance being reset due to rerender

Open insertmike opened this issue 1 year ago • 1 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..

insertmike avatar Feb 13 '24 19:02 insertmike

Any solution to this issue?

torver213 avatar Apr 25 '25 00:04 torver213