lauirvin / react-use-face-detection

22 stars 7 forks source link

Camera/FaceDetection not working on iOS devices #2

Closed MatejFacko closed 1 year ago

MatejFacko commented 1 year ago

Packages used for development

React - v18.1.0 Typescript - v4.6.4 React useFaceDetection - v1.0.1

Mobile device: All iOS Devices

Browser and version Google Chrome, Safari on iOS

Easy to reproduce on live example: https://serene-meerkat-95a23d.netlify.app/

Seems like the camera can not be initialised or there is some problem with the camera stream. (Sample is working on Android devices.)

shubhamy-metricoidtech commented 1 year ago

faced the same issue with chrome on android device loading stucks on true

lauirvin commented 1 year ago

Sorry for the late fix; please refer to this commit for the fix: https://github.com/lauirvin/react-use-face-detection-demo/commit/d42d98f2fbf1f8349b11101e3e9745d219d833be

This has also been deployed to the live example. Thanks!