Remove cursor on WaveSurfer.empty()
#4000
Unanswered
aantusahaa
asked this question in
Q&A
Replies: 1 comment
-
Make sense for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using wavesurfer with the recorder plugin with
renderRecordedAudio: true
. I use the same instance to record multiple audio, preview them and clear the waveform by callingempty()
once the user saves the recording.When it is first initialized, it renders an empty UI.
While recording, I get something like this. You can notice the cursor being visible on the left side. But as it is not interactive it's fine I guess.
After all set and done I want to go back to the initial state (to the first image), for that I am calling
empty()
function. But it is still keeping the cursor and the UI is interactive.Expected Behavior
If I am explicitly calling the
empty()
function, it should clear the entire canvas and remove the cursor and disable the interactivity because there is nothing to do in the waveform if it's empty.Otherwise, we may have a new function called
reset()
that will bring everything to the initial state.Alternate Consideration
setOptions()
in different places to get the desired effect.But none of these seems intuitive solutions to me.
Beta Was this translation helpful? Give feedback.
All reactions