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!!