brunocroh / bolhadev.chat

A free platform for Brazilian developers to improve their English skills.
https://bolhadev.chat
185 stars 19 forks source link

fix: Fixing problem where Firefox user does not have webcam working #17

Closed wendesongomes closed 4 months ago

vercel[bot] commented 4 months ago

@wendesongomes is attempting to deploy a commit to the Meg IT Team on Vercel.

A member of the Team first needs to authorize it.

brunocroh commented 4 months ago

When opening a PR is good explaining the idea behind the code submitted.

Something like it https://github.com/brunocroh/bolhadev.chat/pull/8.

But looking the code, what I understand about it is that you just ignore the action of request permission, to not show the error. But I believe it not will app works, because it still without have permissions

wendesongomes commented 4 months ago

I'm requesting it as below, it asks the user for authorization, if the user doesn't give it then it gets an error, saying that the user didn't give permission, the old way of getting authorization isn't available in Firefox

await navigator.mediaDevices.getUserMedia({
        video: true,
        audio: true,
      });

navigator.permissions.query({ name: 'camera' }) is not supported image

brunocroh commented 4 months ago

Perfect @wendesongomes, thanks for your contribution, I really appreciate it