Closed nicolocarpignoli closed 5 years ago
I have problems also in local environment, with or withouth HTTPS makes no difference
examples: on github.io https://jeromeetienne.github.io/AR.js/three.js/examples/mobile-performance.html
on codepen: https://codepen.io/nicolocarpignoli/pen/vMBgob
broken webcam! better this way🙂
Hi Nicolo! I have a similar problem when clicking learn new marker area. Do you know how to overcome this?
in my browser the link with the hiro marker works very well: ---> examples: on github.io https://jeromeetienne.github.io/AR.js/three.js/examples/mobile-performance.html
but this one has the issue: MarkersAreaEmabled :false ---> on codepen: https://codepen.io/nicolocarpignoli/pen/vMBgob nothing happens, no objects appear on the marker
some things to try:
Hey Nicolo! Thanks for your answer. It means a lot to me, since I am a total beginner with programming and it is not easy to start, becouse I feel like I am annoying everyone around with basic questions :).
So for the link: https://codepen.io/nicolocarpignoli/pen/vMBgob
Answering your other Q:
Ad. cam: Camera works perfectly with other browsers on your yellow-cube codepen demo and as mentioned with the following link it works in all browsers https://jeromeetienne.github.io/AR.js/three.js/examples/mobile-performance.html so I guess the cam is generally ok.
Ad. ext. display: I am using no external display, just laptop and the build-in webcam.
Ad. cache: Browser cache in Chrome is cleaned - still your yellow-cube demo https://codepen.io/nicolocarpignoli/pen/vMBgob doesn't work in Chrome
In addition I copied the code from https://codepen.io/nicolocarpignoli/pen/vMBgob to SublimeText, saved as index.html and opened it locally with all 3 browsers. Here the effect:
Webcam Error Name: NotAllowedError Message: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
P.S. Maybe it is a different topic, but I wonder if you could give me some guidance on this: What is this message on the screen:
MarkersAreaEnabled :false
What does this mean? Additionally I noticed that it disappears, when i try to put a 'custom' marker... Then there are some buttons like:
Do you know any link that explains this features to beginners?
For the last question, use this
<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false; >
instead of the a-scene currently used. this will disable debug buttons and text.
For the safari error, it is strange, safari should asks you camera permission at any website refresh.
Chrome works for me also. Which device are you using? I suggest you to run the example on smartphone and show hiro marker on screen (laptop or whatever)
I found this problem with last chrome (75) and also latest Safari
Important: there is no debug log on console, and the problem has suddenly shown up only in Desktop Browsers: fortunately on android (with chrome 75, so latest one) still works.
Did anyone experienced this as well?
It breaks codepen example on Readme of AR.js and other AR.js apps that were working last days.