GithubHelp home page GithubHelp logo

Not working with cordova about ngx-webcam HOT 8 CLOSED

basst314 avatar basst314 commented on July 26, 2024
Not working with cordova

from ngx-webcam.

Comments (8)

monikagupta78 avatar monikagupta78 commented on July 26, 2024 1

I am facing similar issue, was this resolved? looks like some runtime permissions need to be added somewehere? any inputs pls.

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

Hi @mick88,

Does your project live on github? I’d like to take a look at the integration. Could you point me to your source code?

Haven’t really worked with cordova before, but I will see what I can do.

Thanks

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

In the meantime - could you verify that no error was emitted via the initError event emitter?

Thanks!

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

Hi @mick88,
were you able to check the initError event emitter for messages?
Thanks

from ngx-webcam.

mick88 avatar mick88 commented on July 26, 2024

No, sorry, I don't know how to. I used a cordova camera plugin instead. I think camera permission isnt allowed because cordova web content isnt served over https.

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

Okay, yeah at least common browsers require an https connection in order to access sensitive devices such as the camera. Might be the same in cordova if content is only served over http.

Is it possible to serve this content over https as well? Could you try if that solves your problem?

I might also be going to test this library with a cordova app if I have time to build one. ;)
Leaving this ticket open for now.

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

Hi @monikagupta78,

can you share your project and/or project-code?

Things to check:

  • Do you serve your content over https?
  • Did you check whether there are any errors in the initError event emitter after initialization?
  • Did you allow camera access?
  • Does your browser support the necessary APIs? (Validate by visiting the demo page); if it shows the webcam, you're good.

Thanks

from ngx-webcam.

basst314 avatar basst314 commented on July 26, 2024

No reply from requester, closing this issue.

from ngx-webcam.

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.