Bug: onTimeUpdate not reseting the timestamp #820
Labels
bug
Something isn't working
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-player-react
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
Hi there,
I am using the MuxPlayer in NextJs 13, in a client Component
and my page component which uses this player is as following
My problem is that whenever i change the slug which changes the data, the player is changing the video yes but the timestamp keeps continuing, i tried various ways, like using "ref", or adding "key={playbackId}" but nothing seems to work.
Thanks for your time
Reduced test case
No response
Steps to reproduce
1.change props to use playbackId
2.underlying component onTimeUpdate doesn't reset
Current Behavior
onTimeValue is not resetting
Expected Behavior
onTimeValue should get back to 0 whenever the playbackId updates
Errors
No response
What version of the package are you using?
v2.1.0
The text was updated successfully, but these errors were encountered: