Closed krsbx closed 2 years ago
@krsbx Is this code change really necessary? I have no problem testing in my laptop. It will starts the environment camera if face camera does not exists.
According to the getUserMedia doc: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
Search { audio: true, video: { facingMode: "user" } }
. It said For example, on mobile devices, the following will prefer the front camera (if one is available) over the rear one:
.
It seems to me faceMode: "user"
is not a hard constraint, unless we do { audio: true, video: { facingMode: { exact: "user" } } }
thats weird, lets just close the PR then
at the moment, the face target will use the user camera only and when we try to use it in a laptop/computer, it wont start at all. Need to add a fallback function to use the first camera that the user had.