Skip to content

Error in setCurrentAudioTime #14

Open
@MiteshDarda

Description

@MiteshDarda

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:

  1. Play the recording let jump to any second expect 0
  2. Use the function recorderControls.setCurrentAudioTime(0);
  3. Then call the funciton recorderControls.togglePauseResume()
  4. See the error that time is not updated properly

Expected behavior
When i do togglePauseResume it should play from 0 seconds

** Screenshots**
Watch the video

** Package info **
2.0.2

** Additional context **

const restartPlayback = () => {
     recorderControls.setCurrentAudioTime(0);
     recorderControls.togglePauseResume()
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions