question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When providing preloaded peaks with MediaElement, the peaks are overwritten once the track loads entirely

See original GitHub issue

I’m using wavesurfer.js 2.0.0-beta01, MediaElement as a backend, and providing preloaded peaks.

When the track starts playing, the provided peaks are shown OK. But after the whole track gets downloaded, peaks generated by wavesurfer.js are shown over preloaded peaks.

I replicated the issue here: https://codepen.io/newjurgen/pen/KqvYxO (the track is around 20MBs, it can take a little while to load).

How can I prevent this behaviour?

Thanks for making wavesurfer.js.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
entonbibacommented, Jul 3, 2017

@thijstriemstra it’s actually set to true in version 2 by default. pr #1159 to set default to false

image

1reaction
jurgenwerkcommented, Jun 24, 2017

I solved the issue by adding a parameter when initializing: forceDecode: false. I thought this parameter defaults to false? Looking at this code, it truly looks so: https://github.com/katspaugh/wavesurfer.js/blob/master/src/wavesurfer.js. But somehow the forceDecode gets the value true, even when leaving it out when initializing. Not sure how this happens, looks like a bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tools/metrics/histograms/histograms_xml/others ... - Google Git
Tracks the status of token loads from disk by Chrome OS Account Manager, for. a given user. This is recorded only once per...
Read more >
Contents at a Glance - Springer
resource and the first one that succeeds will be the resource chosen for the <media> element. If none succeeds, the media element load...
Read more >
Testdome merge names - Caritas Castellaneta
Next, provide the commit message for the changes. Track FedEx shipments with one of the convenient tools below. Write a Python function that...
Read more >
OppiaMobile Documentation - Read the Docs
Since users who are registered but not actively using the app will put little or no load on the server. 2. There will...
Read more >
macromedia® - FTP Directory Listing
provides these links only as a convenience, and the inclusion of the link ... 3 Choose a Preload option to define how cast...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found