Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Audio Partial content (byte range requests) + preloaded peaks #1141

Closed
jurgenwerk opened this issue Jun 17, 2017 · 6 comments
Closed

Web Audio Partial content (byte range requests) + preloaded peaks #1141

jurgenwerk opened this issue Jun 17, 2017 · 6 comments

Comments

@jurgenwerk
Copy link

I'm about to start implementing a music player with a waveform and I have these requirements:

  • Passing pre-generated peaks for Web Audio (will be generated in the backend)
  • Playing (seeking) should not need the whole file be downloaded, but rather issue Partial Content (206) requests to get only the range needed.

I read through the documentation and spend some time reading through issues, but some answers were several years old, so I'd like to know if Wavesurfer progressed to the point of having these two features.

Thanks for making wavesurfer.js! 🙏

@agamemnus
Copy link
Contributor

There are a few small bugs when loading with peaks but they are a mostly a nuisance... I have PRs for them in queue. My version is at https://github.com/agamemnus/wavesurfer.js/blob/master/dist/wavesurfer.js. In terms of peakgeneration, I'm currently working on refining my code, but just below you is another way: #1139.

@jurgenwerk
Copy link
Author

@agamemnus could you please explain these bugs (or link to PRs)?

Also, does preloading peaks and using Web Audio support partial content loading (when seeking/scrubbing)?

@agamemnus
Copy link
Contributor

agamemnus commented Jun 18, 2017 via email

@jurgenwerk
Copy link
Author

I successfully implemented this using MediaElement backend, using preloaded peaks using audiowaveform and some peaks post-processing and using CloudFront as a server.

@15838028035
Copy link

is there a java server demo for generate peaks @matixmatix

@15838028035
Copy link

@matixmatix cloud you share you successfully demo ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants