Describe the bug
With iPhone X, running iOS 13(17A5522g), AR js seems to fail to render on screen.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
video from camera should be shown on screen, with AR overlay
Screenshots
https://ibb.co/m8WRzS0
https://ibb.co/PGsdBM4
Smartphone (please complete the following information):
Additional context
The same device, with iOS 12, was able to launch the demo. So this would not be a hardware
issue.
I'm having this problem as well with the same configuration
very interesting. can you please share with us console errors, if any?
And adding to @nicolocarpignoli you can show your console by properly doing it be following one of these examples:
http://www.imagezap.org/developer-console-safari-iphone/
https://www.lifewire.com/activate-the-debug-console-in-safari-445798
So weird... Have you tried it on google chrome? (I know it should still work on safari, but wanted to see if it is a safari only problem or if it a iOS 13 problem).
Chrome gives me this
https://ibb.co/SRgBj6J
but I think it's just chrome on ios. with iphone 5s (ios 12.3) I get the same error.
https://ibb.co/9cwHfPz
Have you tried to enable the microphone access?
Settings > Safari > Camera & Microphone Access.
I have seen some people have this problem mostly with newer iPhones.
So I am just grasping at straws here.
But other than that I do not know what else to do XD
Sadly, no. I had it set to Ask, and I did allow access.
I also set them to Allow (for all website) too, that didn't fix it.
I am not sure if people have more insight on what's happening here.
Maybe try to file an Apple bug and see if they will fix it before Sep?
Don't even try on Chrome on iOS, it won't prompt for camera access. Still in 2019馃槖
Can someone tell if this is preproduceable with Simulator of iOS on Mac? In that case I may give it a look
no.. I think iOS Simulator just don't have web cam access
https://ibb.co/jVPxf0F
Sad to confirm that this happens on the latest ios13 beta 13.0 (17A5534f)
I'd like to know if it is an AR.js problem with new iOS beta or a generic camera-stream problem.
Can someone please tell me if this example works ==> https://mdn-samples.mozilla.org/s/webrtc-capturestill/ ?
Just tested on iOS 13 beta 4 (https://developer.apple.com/news/releases/?id=07172019d), and it is NOT working, even with a basic camera-using example like the one I posted above.
So it is a serious bug from Apple, for now. Keep in mind that this is still in beta, maybe they changed the APIs, maybe something worse. But I feel like this will be raised in the future from a lot of developers if not get fixed.
For now I close, as it is not an AR.js related bug. If this will come out also on official iOS 13, we will think about it and dig on it more, and eventually open an issue to Apple
@nicolocarpignoli
Just some update
The basic camera-using example (https://mdn-samples.mozilla.org/s/webrtc-capturestill/) does not have the autoplay, mute, and playsinline
With that it works on iOS 13
https://ibb.co/54SHCjL
https://codepen.io/kylelam/pen/oKLxMy
@kylelamx I don't know what is changed, but now it works even without those attributes: if you check the URL you have posted on the first post of this thread, it works now with iOS 13. Also, your last example works without autoplay, mute and playsinline (try to remove them on codepen).
Honestly, I don't know how this is possible, I don't think Apple has released a fix silently, but I guess it may happen in iOS beta program.
Its fixed in Beta 5 which released today
Most helpful comment
Its fixed in Beta 5 which released today