You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
setCurrentAudioTime is taking the indicator correctly to the given time,
but when i use togglePauseResume() it starts from the old time stamp,
i think setCurrentAudioTime it is not updating
To Reproduce Steps to reproduce the behavior:
Play the recording let jump to any second expect 0
Use the function recorderControls.setCurrentAudioTime(0);
Then call the funciton recorderControls.togglePauseResume()
See the error that time is not updated properly
Expected behavior
When i do togglePauseResume it should play from 0 seconds
It seems that setting setCurrentAudioTime doesn't have an effect on anything because currentAudioTime gets immediately overwritten by audioRef.current.currentTime in the requestAnimationFrame loop.
We just need a way to change the audioRef.current.currentTime @YZarytskyi let me know your thoughts:
Keep setCurrentAudioTime and audioRef.current internal, and expose a a new function, something like
Where the audioRef.current.currentTime gets set so it plays from that time, and the currentAudioTime state gets set which is necessary to move the indicator if the track is paused.
Describe the bug
setCurrentAudioTime is taking the indicator correctly to the given time,
but when i use togglePauseResume() it starts from the old time stamp,
i think setCurrentAudioTime it is not updating
To Reproduce Steps to reproduce the behavior:
Expected behavior
When i do togglePauseResume it should play from 0 seconds
** Screenshots**
** Package info **
2.0.2
** Additional context **
The text was updated successfully, but these errors were encountered: