Wavesurfer.js: reinitialize / redraw on resize ?

Created on 19 Oct 2018  路  3Comments  路  Source: katspaugh/wavesurfer.js

hi,
what is the best way to redraw the wavefrom once the browser size change ?

Is there a smarter way than calling WaveSurfer.create ?

~
Marc

Most helpful comment

@daslicht RTFM!

All 3 comments

@daslicht RTFM!

wavesurfer.drawer.fireEvent('redraw') it works for me

Was this page helpful?
0 / 5 - 0 ratings