Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

198
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!