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.

Progressive MP3 loading

See original GitHub issue

Hi I’m loading the waveform from a json file and the audio from a local server

wavesurfer.util
                .fetchFile({
                    responseType: 'json',
                    url: myWaveformURL
                })
                .on('success', function (data) {
                    var points = data.data || data;
                    wavesurfer.load(myStreamingURL,
                        points
                    );
                    if (autoPlay) { // autoplay
                        // not working: The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page
                        wavesurfer.seekTo(0);
                        setTimeout(() => wavesurfer.play(), 1000);
                    } else { // seek to load annotations data
                        wavesurfer.seekTo(0);
                    }
                });

I see that the player downloads the whole file (~3MB) at load. Any way to avoid this?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
thijstriemstracommented, Apr 15, 2020

try using backend: 'MediaElement'.

0reactions
thijstriemstracommented, Apr 16, 2020

try this flow: https://github.com/katspaugh/wavesurfer.js/blob/master/example/audio-element/main.js#L39 I don’t use regions plugin, can’t help you there. Will close since original issue is solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Free Progressive House Music MP3 Download - Pixabay
Progressive house music download. Royalty free progressive house music MP3 download. Use the audio track and instrumentals in your next project.
Read more >
Progressive House DJ Mixes & Live Sets 2022 MP3 Download
Here you can download and listen online latest progressive house music, songs and remixes in DJ live sets and mixtapes in MP3 format...
Read more >
Download free Progressive House MP3 - starfrosch
Progressive House. Download the hottest free Progressive House MP3 music tracks. Stream and download over 30000 no copyright, Open Progressive House free ...
Read more >
Progressive House Live Sets & DJ Mixes to Listen or Download
The best Progressive House Live Sets to download from Soundcloud and Zippyshare! Only the best DJ Mixes with track list collection of Festival...
Read more >
Progressive House | All | Use With Attribution | Search Results
FREE DOWNLOAD MP3 & WAV. This music is free to use only if you credit the artist. If you don't want to credit...
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