Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

120
Visualizações
Wavesurfer create region on event

I have a list of editable caption blocks - where users can add/remove caption blocks + in each block they can type/delete text too.

I want to:

  1. create/delete a region in wavesurfer each time a user clicks the add/remove button
  2. add/remove text in the region each time the user adds types/deletes the text

Here is a sample of my code.

    // Create a wavesurfer object
    var wavesurfer = WaveSurfer.create({
      container: document.getElementById("waveform"),

      // Visual preferences & settings
      waveColor: '#242844',
      progressColor: 'yellow',
      backgroundColor: "white",
      barWidth: 1,
      hideScrollbar: true,
      scrollParent: true,
      partialRender: true,
      interact: false,

      plugins: [
        WaveSurfer.timeline.create({
          container: document.getElementById("timeline")
        }),

        WaveSurfer.regions.create({
          regionsMinLength: 2,
          regions: []
        })
      ]
    });
    wavesurfer.load('https://ia800508.us.archive.org/15/items/LoveThemeFromTheGodfather/02LoveThemeFromTheGodfather.mp3');
    wavesurfer.regions.disableDragSelection()
    wavesurfer.setVolume(0)

How can I create this functionality?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda