use wavesurfer's time apis