Comments (21)
Seems to work fine here on a Huawei Honor:
What device(s) and browser(s) are you having problems with?
from playcanvas-ar.
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.
from playcanvas-ar.
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.
Nope, No Dialog asking about the camera.
I can, however, dont have access to pc atm. I'll take a look when so.
from playcanvas-ar.
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.
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.
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.
OK, let me know what you find out. 😄
from playcanvas-ar.
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.
Sorry haven't been active. On holiday atm. I'll be back on Thursday to help out.
Gl
from playcanvas-ar.
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.
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.
EDIT: Actually, there is a error - unable to acquire camera stream. Error logging was just broken in .catch branch.
from playcanvas-ar.
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.
Nope, getting NotReadableError at this link. Seems like hardware / os issue with my device.
from playcanvas-ar.
Hmm. Seems so. Weird.
from playcanvas-ar.
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.
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.
It works in Firefox for me, so seems like Chrome issue indeed.
from playcanvas-ar.
Hey Guys,
It's now working on Chrome. Believe this is Issue fixed?
Thanks,
Dean
from playcanvas-ar.
Thanks for the update. Closing...
from playcanvas-ar.
Related Issues (16)
- Barcode patterns HOT 2
- Unable to use kanji marker HOT 1
- How can I create my own patt? HOT 2
- Can I use the NFT mode that I can use a random picture HOT 2
- Box is shaking HOT 4
- Native AR View for Android and IOS
- Creating new markers...
- Tracking Not Stable HOT 1
- Add support for multi-markers
- Add a portal-style example
- Does this lib support ARToolkit's NFT and if not, what is your estimation of the effort required to support it? HOT 2
- How To Use Natural Feature Tracking (NFT) to Recognize and Track an Image? HOT 2
- How To Make Folder For JSArtoolkit Get Files? HOT 1
- How to scale down the camera captured stream? HOT 1
- How to get front facing camera? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playcanvas-ar.