drei icon indicating copy to clipboard operation
drei copied to clipboard

FaceControls don't work in mobile

Open Kaique292 opened this issue 1 year ago • 2 comments

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 avatar Jan 04 '24 19:01 Kaique292

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 avatar Jan 04 '24 19:01 Kaique292

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.

Kaique292 avatar Jan 04 '24 19:01 Kaique292