Drawing static waveform with animated playhead (playback position)

Has anyone succeeded in doing this? I'm able to draw both a static waveform and an animated playhead, but each time the playhead is drawn, it remains on the screen, so the end result is a giant bar that hides the waveform.

I've tried putting the waveform.draw() call in the draw() function, but it's too time costly, and the playhead skips significantly. Just want to get a simple thin vertical bar that moves across the waveform, like in the http://wavesurfer-js.org/ demo.

Answers

Sign In or Register to comment.