immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
999 stars 480 forks source link

Can't get proposed phone samples working locally #17

Closed PaulTVungle closed 6 years ago

PaulTVungle commented 6 years ago

Hi,

I'm using a Moto G6 Plus with ARCore and Chrome Canary 69.0.3476.0 (today's nightly) to try out the proposed handset examples here:

https://immersive-web.github.io/webxr-samples/proposals/

If I go directly to this url, both samples work faultlessly and actually the experience is pretty nice.

However, if I check out the repo and start a local web server (Node http-server) with the root webxr-samples/, then I visit the local url (ip_addr:8080/webxr-samples/proposals/phone-ar.html) with the same handset it says "AR NOT FOUND" on the button and I can't start either AR experience.

I wondered if there were any dependencies missing from the repo but unfortunately it is hard to spider the pages because links are created in javascript and wget won't follow those.

Apologies if I have missed any documentation, but I haven't been able to find anything relevant. Is there something else I need to do to be able to get the samples to run from a local web server?

Thanks

PaulTVungle commented 6 years ago

Ah, I've just found the Origin Trials page:

https://github.com/GoogleChrome/OriginTrials/blob/gh-pages/available-trials.md

Is this likely to be my problem?

PaulTVungle commented 6 years ago

This was indeed the problem, I have an origin trial token now and everything works locally.

I'll close this ticket, but could you consider adding a line about the origin trial in the documentation as it might save other developers some time.

Ta.

jsantell commented 6 years ago

Could also be related to needing HTTPS or a localhost URL to access the features