AR.js
AR.js copied to clipboard
Connections timed out in mobile. Using the example files.
Hello everyone! I'm trying to execute the AR example from the docs, and, in the desktop browser the server gives a response, but, in mobile (Using Google Chrome, in Galaxy S20 FE 4G), the server just doesn't give a response. I'm using Serve (NPM module), in node:alpine image of docker (I tried to execute in my machine itself, but gives the same problem)
<html>
<header>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
</header>
<script src="https://aframe.io/releases/1.0.0/aframe.min.js"></script>
<!-- we import arjs version without NFT but with marker + location based support -->
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded arjs>
<a-marker preset="hiro">
<!-- we use cors proxy to avoid cross-origin problems ATTENTION! you need to set up your server -->
<a-entity
position="0 0 0"
scale="0.05 0.05 0.05"
gltf-model="https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf"
></a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>
The command execute was: yarn serve -s . -l 3000
, can someone give a help with this? If had the same issue.
Ad: I already tried to put the tag with the infos gaves in #372 issue, but, doen't work, I think is a different problem