Wavesurfer.js: Load only waveform and wait for user to press play to download audio

Created on 2 Sep 2019  路  3Comments  路  Source: katspaugh/wavesurfer.js

I followed the instructions from here https://stackoverflow.com/a/39009549/972813 to load the waveform and wait for the user click to load audio. It works well but it redraws the waveform whilst is loading.

Can I just load and play without redrawing waveform?

needs-update question

All 3 comments

@diegoiglesias can you make a codepen that reproduces the problem?

try

wavesurfer.loadMediaElement(wavesurfer.song, wavesurfer.backend.peaks, true, wavesurfer.getDuration());

try

wavesurfer.loadMediaElement(wavesurfer.song, wavesurfer.backend.peaks, true, wavesurfer.getDuration());

Yes! it worked perfectly!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Trojan0523 picture Trojan0523  路  3Comments

matixmatix picture matixmatix  路  5Comments

asdfang picture asdfang  路  4Comments

thijstriemstra picture thijstriemstra  路  3Comments

itamaker picture itamaker  路  4Comments