Coder Social home page Coder Social logo

Comments (21)

willeastcott avatar willeastcott commented on May 21, 2024

Seems to work fine here on a Huawei Honor:

img_0178

What device(s) and browser(s) are you having problems with?

from playcanvas-ar.

Epikos1994 avatar Epikos1994 commented on May 21, 2024

Tested with a Samsung J5 and a Samsung Note 4.

Mainly testing with the Note 4. Android v6.0.1

Playcanvas shows, loads, completes and then this screen.

screenshot_2018-02-20-12-59-35-resize

from playcanvas-ar.

willeastcott avatar willeastcott commented on May 21, 2024

And you never see the dialog asking for permission to use the camera?
What do you see if you go to http://get.webgl.org?
Can you remote debug the problem device(s) and get the JavaScript console output?

from playcanvas-ar.

Epikos1994 avatar Epikos1994 commented on May 21, 2024

Nope, No Dialog asking about the camera.

image

I can, however, dont have access to pc atm. I'll take a look when so.

from playcanvas-ar.

willeastcott avatar willeastcott commented on May 21, 2024

Wait. There’s no lock on your browser when viewing the app. Does that mean you’re not viewing the link over https? Https is required for camera access.

from playcanvas-ar.

Epikos1994 avatar Epikos1994 commented on May 21, 2024

Ive just checked. Still the same issue. I tried incognito also to see if there were possible cache settings or something. But the only permissions the page says it has/needed are for sound.

Also reset page settings and data. No luck.

Ill send a screenshot when I get to a pc.

from playcanvas-ar.

cognitiveplus avatar cognitiveplus commented on May 21, 2024

I have the same issue on Xiaomi Redmi 3, Android 5.1.1.
Although I get camera dialog on the first try, after confirming it the screen is grey. On subsequent tries there is no camera dialog, only grey screen.

Will try to clone this project, build my custom version and debug it.

from playcanvas-ar.

willeastcott avatar willeastcott commented on May 21, 2024

OK, let me know what you find out. 😄

from playcanvas-ar.

cognitiveplus avatar cognitiveplus commented on May 21, 2024

Ok, here are some findings:

  • Camera entity is working, I can easily see entities attached to it. (#00000000 clear color just results into dark grey background, probably because it makes canvas absolutely transparent, and dark grey remains from preloader div)
  • But video rendering seems to be broken. Playing with script attributes did nothing, so gonna try to debug video rendering itself!

It also may be the issue with getting input from device camera, since placing AR marker in front of it doesn't fire up the cube - so seems like the script doesn't see camera input and can't process it

from playcanvas-ar.

Epikos1994 avatar Epikos1994 commented on May 21, 2024

Sorry haven't been active. On holiday atm. I'll be back on Thursday to help out.

Gl

from playcanvas-ar.

cognitiveplus avatar cognitiveplus commented on May 21, 2024

Another finding - removing calibration .dat file from ArCamera script attribute seems to break desktop version in the same way as it's currently broken on my android - i.e. it just loads to dark grey and doesn't do anything. May be there is an issue with camera calibration file on some androids?

from playcanvas-ar.

cognitiveplus avatar cognitiveplus commented on May 21, 2024

I've found the culprit:
ArCamera.prototype.enterAr ::
navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {...}) - the code flow doesn't reach inside this callback. No error is caught though.

from playcanvas-ar.

cognitiveplus avatar cognitiveplus commented on May 21, 2024

EDIT: Actually, there is a error - unable to acquire camera stream. Error logging was just broken in .catch branch.

from playcanvas-ar.

willeastcott avatar willeastcott commented on May 21, 2024

Hmm. Are you able to run any non-PlayCanvas apps on your device that use getUserMedia? For example:

https://webrtc.github.io/samples/src/content/getusermedia/gum/

from playcanvas-ar.

cognitiveplus avatar cognitiveplus commented on May 21, 2024

Nope, getting NotReadableError at this link. Seems like hardware / os issue with my device.

from playcanvas-ar.

willeastcott avatar willeastcott commented on May 21, 2024

Hmm. Seems so. Weird.

from playcanvas-ar.

Epikos1994 avatar Epikos1994 commented on May 21, 2024

Hey Gents,

So I've been looking around and testing some things out. This looks like an issue for Chrome.

I tested the app using Samsung internet and I get the request to access camera and the app works fine.
(However it was using my front camera)

I'll keep digging some more and let you know what I find.

from playcanvas-ar.

willeastcott avatar willeastcott commented on May 21, 2024

If this is a Chrome bug (regression?), then you might want to report it on:

https://bugs.chromium.org/p/chromium/issues/list

They're normally quite responsive.

from playcanvas-ar.

cognitiveplus avatar cognitiveplus commented on May 21, 2024

It works in Firefox for me, so seems like Chrome issue indeed.

from playcanvas-ar.

Epikos1994 avatar Epikos1994 commented on May 21, 2024

Hey Guys,

It's now working on Chrome. Believe this is Issue fixed?

Thanks,
Dean

from playcanvas-ar.

willeastcott avatar willeastcott commented on May 21, 2024

Thanks for the update. Closing...

from playcanvas-ar.

Related Issues (16)

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.