Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
How do I use peaks with an audio coming from the back-end in React Wavesurfer?

I have a problem using back-end media elements with peaks in this library the peaks stopped working or did not appear when I try to get the audio from a database connected to the back-end... on the other hand, when I use the audio directly on the client-side the peaks work just fine because I didn't have to use media elements with this option!

Does anyone have an idea?

here is a code snippet...


 wavesurfer = WaveSurfer.create({
      container: waveformRef.current,
      waveColor: "#747993",
      height: 90,
      responsive: true,
      progressColor: "#393F65",
      normalize: true,
      backend: "MediaElement",
      plugins: [
        RegionsPlugin.create({
          dragSelection: {
            slop: 5,
            color: "hsla(9, 100%, 64%, 0.1)",
          },
        }),
        TimelinePlugin.create({
          container: "#timeline",
          formatTimeCallback: formatTimeCallback,
          timeInterval: timeInterval,
          primaryLabelInterval: primaryLabelInterval,
          secondaryLabelInterval: secondaryLabelInterval,
          primaryColor: "#2A045A",
          secondaryColor: "#747993",
          primaryFontColor: "#2A045A",
          secondaryFontColor: "#747993",
          formatTime: "HH:MM:SS",
        }),
      ],
    });

    wavesurfer.load(audioUrl);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!