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

136
Views
How to capture error with Mediapipe camera object

I am using the mediapipe Camera object imported by '@mediapipe/camera_utils/camera_utils'

It is working fine most of the times, but sometimes an error is thrown inside this 'camera_utils' file but I don't know how to capture and handle it.

        try {
            this.camera = new Camera(this.video, {
                onFrame: recursiveCamera,
                width: width / 2,
                height: height,
            });
        } catch (error) {
            console.log('error camera mediapipe captured ', error)
        }

I am running this try/catch but even if the exception is thrown, it is not captured by the try/catch

It is easily reproducible if you throw and exception inside the 'camera_utils' file like 'throw Error("The play() request has been denied by the user")'

Thank you!!

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