drei
drei copied to clipboard
FaceControls don't work in mobile
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?
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
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.