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

272
Vistas
Plyr library: can't stop event propagation when multiple instances of plyr are on the same page

Expected behaviour : Having multiple instances of Plyr on the page, should be able to add a 'enterfullscreen' and 'exitfullscreen' event that fires when a specific instance's full screen button is clicked. - this works perfectly when only 1 instance of Plyr exists. using event.stopPropagation() / event.stopImmediatePropagation() should stop other instances from triggering.

Actual behaviour :

'enterfullscreen' successfully triggers , but also calls the custom 'exitfullscreen' event multiple times (even though still in full screen mode). The amount of extra unwanted triggers for 'exitfullscreen' pends where the element is in the DOM, it triggers each subsequent instance of plyr to 'exitfullscreen' event.

Console errors (if any) no errors

player[0].on('enterfullscreen', function(event) {
    alert('enter full screen');
    event.stopImmediatePropagation();
});
player[0].on('exitfullscreen', function(event) {
    alert('exit full screen');
    event.stopImmediatePropagation();
});

Link to where the bug is happening https://codepen.io/stewart-so-bold/pen/BammmoR

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