GithubHelp home page GithubHelp logo

Comments (12)

ayushanand308 avatar ayushanand308 commented on June 13, 2024 1

We can have something like "No webcam found on this device" instead of the current error message to let the users know that the code is working fine but there is simply no webcam to capture video from.

from p5.js.

Qianqianye avatar Qianqianye commented on June 13, 2024 1

Hi @Garima3110. Below are three contributor documentation that you might find helpful:

I will suggest going through the three docs and leave comments here if you have any questions. We are in the process of updating our contributor documentation, so please feel free to let us know how we can improve the docs to make it easier for contributors to get started. Thank you!

from p5.js.

ayushanand308 avatar ayushanand308 commented on June 13, 2024 1

@Garima3110 The line of code you provided is a standard JS error throw statement, and it will result in a regular error being thrown, not a friendly error. I also think that you would have to make changes in translation.json files.

@Ayush23Dash Also in which existing category of friendly error should this fall, or we should add a new category like "_nodeviceFoundError()"?

from p5.js.

Qianqianye avatar Qianqianye commented on June 13, 2024

Thanks @lindapaiste and @ayushanand308. I'm inviting the FES GSoC contributor @Ayush23Dash and mentors @almchung @nbriz to this discussion.

from p5.js.

Ayush23Dash avatar Ayush23Dash commented on June 13, 2024

Yup, I agree with @ayushanand308 and believe so that we can add an error for the same, also it would be great if we add one more error for Camera Permission denied.
Currently it shows :
DOMException: Permission denied
error, which is somehow descriptive but adding a Friendly Message to it would also be great.

from p5.js.

Qianqianye avatar Qianqianye commented on June 13, 2024

Thanks @Ayush23Dash! What do you think, @almchung and @nbriz?
We can add these error messages if they are approved by two FES stewards and GSoC mentors/contributor.

from p5.js.

ayushanand308 avatar ayushanand308 commented on June 13, 2024

@Ayush23Dash Should I begin working on this and submit a pull request?

from p5.js.

Qianqianye avatar Qianqianye commented on June 13, 2024

Thanks @ayushanand308 for the follow up. Please go ahead and submit a PR.
Meanwhile, I'm inviting the new FES stewards to this discussion @richardegil, @itsjoopark, @hannahvy, @bisabi-01, @singshris. Please feel free to leave comments or questions. Thank you.

from p5.js.

richardegil avatar richardegil commented on June 13, 2024

I agree with this. For the permission denied error may I suggest the following: "Camera detected but permission to it has been denied."

from p5.js.

Garima3110 avatar Garima3110 commented on June 13, 2024

Hii everyone, I am just a beginner to open source. I know a bit of javascript but still learning. I would like to address this issue , could you please help me through the process?!

from p5.js.

Garima3110 avatar Garima3110 commented on June 13, 2024

I think in this case we just need to check for the condition :
if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) { throw new Error("Your browser does not support webcam access."); }

@Ayush23Dash It would be great if you could tell me whether I am going in the right direction or not?!

from p5.js.

mdb0 avatar mdb0 commented on June 13, 2024

Since there isn't much update i would like to work on this issue

from p5.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.