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

164
Vistas
Is it possible to sync selected regions between two wavesurfer objects?

After having created two WaveSurfer objects, wavesurfer and wavesurfer2, I would like to make it so that their regions selected sync when the region selected is updated on one of them. I attempt to do this using the firing of a WaveSurfer Event as mentioned in the documentation for WaveSurfer Regions.

wavesurfer.on('region-update-end', function () {
wavesurfer2.regions.params.regions = wavesurfer.regions.params.regions;
console.log(wavesurfer.regions.params.regions)

});

Although the console log below indicates that the Regions object parameters of the wavesurfer object can be accessed and printed in response to a region resize event, in practice I cannot assign these Regions object parameters to wavesurfer2, and the two regions do not sync.

enter image description here

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