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

200
Vistas
How to handle onloadedmetadata event?

When we have a video file which browser can not play (issue might due to formats or codec), I want to inform the user that the file can not be played by the browser.

In the case of browser being unable to play the video (due to unsupported format or codec), onloadedmetadata event does not get fired.

I would like to know:

  1. Is there an event which fires when metadata load fails?
  2. Is there an error handler for onloadedmetadata event?
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

  1. Is there an event which fires when metadata load fails?
  2. Is there an error handler for onloadedmetadata event?

Instead of a specific event which fires when metadata or onloadmetadata fails; You can do a trycatch:

try {
  // load your video.
} catch (error) {
  // inform the user that the file can not be played by the brower.
}

For a great documentation about trycatch, visit here

about 4 years ago · Juan Pablo Isaza Denunciar
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