-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotation and Stretch problems ( iOs® and Android® ) #242
Comments
That's exactly right, I have been testing in both laptop PC and android/iOS and yes the stretching happens on mobile devices |
Hey @javismiles I tried the changes from @pikilipita in #212. Works for me. |
@Adolar13 thank you very much, really appreciated, i wonder if this will fix all the distorsion issues i had found on android, thank you again |
Just tested it and the problems seem solved on Android ®! i will test it as soon as possibile on iOs® |
thank you again , this fix seems to work well, can you guys help with another issue related to clicks? my marker when detected activates and shows a video (I use a-frame with ar.js, so aframe-ar), Also I am using onclick events now because this used to work: AFRAME.registerComponent('javi1', { but now its not working anymore for some reason, what's your recommended way to detect a click on the specific video element? btw, in console Im receiving these 2 warnings, do they have any relation to the issues with clicks? thanks a lot |
hello @javismiles I'm trying to test video with ios® using |
hey Andrea, I dont have a small standalone example, but I extracted for you
that line from the large project Im working on, look:
<a-video onclick="tellmeclick()" visible="false" javi1 id="videntity"
class="video" webkit-playsinline playsinline width=1 height=1 position="0 0
0" rotation="0 0 2" autoplay="false"></a-video>
that totally works for me on iOS no probs, but of course it has to be iOS
11,
make sure to also have:
<meta name="apple-mobile-web-app-capable" content="yes">
on the metatags,
and also another thing, iOS will not allow the video to preload on mobile
devices, they dont allow it,
and you need to start it on a user click action,
so you gotta put a button somewhere, and when user clicks, onclick you
gotta do the .play() action, if not aint gonna work, iOS is super picky ;)
my problem now is to detect a click on the video itself, the click detection happens on the entire screen, I cant manage so far to detect a click just and only on the video element itself, the entire screen triggers the click
let me know if you manage to make that work, it should work with the things i told you
|
@javismiles thank you ! tomorrow i will try video in AR.js again ;) |
Also working on the roataion and strech problem~ |
closing as MR were merged |
Hello,
i did some test and i see 3D Rotation and 3D Stretch problems on iOs® and Android® devices and it seems they related also to the orientation of the Devices in the space beside the portrait mode:
Tested on iPad® Air, iPhone® ( iOs® 11 ) and Android® Phone ( Firefox® 56 , Chrome® 61 )
in portrait mode, if the iPAd®, iPhone® or Android® Phone are Vertical ( parallel to the wall) and the marker is on the wall: wrong rotation of the 3D content and 3D is also stretched.
in portrait mode, if the iPAd®, iPhone® or Android® Phone are Horizontal ( Parallel to the table) and the marker is on the table: correct rotation of the 3D content but 3D is stretched.
In landscape mode if the iPAd®, iPhone® or Android® Phone are Vertical ( parallel to the wall) and the marker is on the table: works well
In landscape mode if the iPAd®,iPhone® or Android® Phone are Horizontal ( Parallel to the table) and the marker is on the table: works well
Conclusion:
Related to:
Wrong rotation under safari ios11 beta2 #128 The Upside Down issue #229 Random change of orientation, default orientation and overheating/slow #228 Wrong orientation detection on DEXP XL 145 and Samsung Galaxy S5 #275
mobile aspect ratio scaling incorrectly #289
Solutions:
#212 #246
The text was updated successfully, but these errors were encountered: