Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

121
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda