pmndrs / drei

🥉 useful helpers for react-three-fiber
https://docs.pmnd.rs/drei
MIT License
8.39k stars 699 forks source link

FaceControls don't work in mobile #1773

Closed Kaique292 closed 5 days ago

Kaique292 commented 10 months ago

When i try use FaceControls on iphone 12, throw error.

"Unhandled Runtime Error" "TypeError: undefined is not an object (evaluatin 'navigator.mediaDevices.getUserMedia')

On browser work fine.

What i should do?

Kaique292 commented 10 months ago

I discovered why, on the iPhone with an http connection it allows the use of the camera. I had to generate a certificate to run on https.

For those who use next, just run the command

next dev --experimental-https

Kaique292 commented 10 months ago

The problem is that the camera he is using by default is the rear one, and I don't know how to switch to the front one.

github-actions[bot] commented 1 week ago

Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.

Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.

Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!

github-actions[bot] commented 5 days ago

We’re closing this issue to keep our project manageable and make room for other active work, but we truly appreciate your effort and contribution.

If you’d like to continue working on this, please feel free to re-open it or reach out on Discord — our community is always ready to support you. Thanks again for helping us stay organized and for understanding our approach!