katspaugh / wavesurfer.js

Audio waveform player
https://wavesurfer.xyz
BSD 3-Clause "New" or "Revised" License
8.74k stars 1.62k forks source link

Timeline not rendered when load with peaks #1272

Closed awenger63 closed 6 years ago

awenger63 commented 6 years ago

Hi, When use timeline pluging and load wavesurfer with peaks, timeline is not rendered before you play song.

Wavesurfer.js version(s): (1.2.3 see codepen beelow) and local test : v2.0.0-beta01, v2.0.0-beta02

Browser version(s): FireFox : 57.0.2 Quantum, Chrome : 63.0.3239.84 (Build officiel) (64 bits)

Code needed to reproduce the issue:

To reproduce, I use https://codepen.io/frumbert/pen/MOGrKm (issue #1260) and add peaks like https://codepen.io/johnsq/pen/KyVOLd

First load, timeline is not rendered, use play and it's visible.

Hope you can reproduce it and render timeline in first load with peaks data. Regards

awenger63 commented 6 years ago

Hi, For your help, this is not look like true if you add backend: 'MediaElement' parameter.

thijstriemstra commented 6 years ago

Can you try with the latest 2.0.1?

awenger63 commented 6 years ago

Hi @thijstriemstra : Same issue. So, today I can put backend to MediaElement and timeLine is correct, but for zoom issue #1261 no change too in this latest version.

thijstriemstra commented 6 years ago

Ok, thanks for feedback.