Why I can use AR,js in static html but not work in vue appWhy don't self-closing script elements work?Why does JavaScript only work after opening developer tools in IE once?Vue display unescaped htmlVue v-on:click does not work on componentHow to deploy Vue app?static html and vue with bootstrap-vueLoad static HTML files in VueA-Frame & ar.js: Multiple markers & boxesVideo stuck at first frameDoes Vue not show in file #1 because of an unknown hidden character?
What does War Machine's "Canopy! Canopy!" line mean in "Avengers: Endgame"?
What flavor of zksnark in tezos
How to decline physical affection from a child whose parents are pressuring them?
What is the history of the check mark / tick mark?
Align text within align
Company is asking me to work from overseas, but wants me to take a paycut
Did thousands of women die every year due to illegal abortions before Roe v. Wade?
Why do guitarists wave their guitars?
How could a possessed body begin to rot and decay while it is still alive?
Is it a problem that pull requests are approved without any comments
Chopin: marche funèbre bar 15 impossible place
Why does a helium balloon rise?
Riley's, assemble!
What do we gain with higher order logics?
Pros and cons of writing a book review?
Why don't B747s start takeoffs with full throttle?
Personalization conditions switching doesn`t work in Experience Editor (9.1.0, Initial Release)
Can you please explain this joke: "I'm going bananas is what I tell my bananas before I leave the house"?
what is triplication on fpga?
Who operates delivery flights for commercial airlines?
Bent spoke design wheels — feasible?
It possible to have subscript and super script that does not shrink the font size?
How to connect an offset point symbol to its original position in QGIS?
What is the right way to float a home lab?
Why I can use AR,js in static html but not work in vue app
Why don't self-closing script elements work?Why does JavaScript only work after opening developer tools in IE once?Vue display unescaped htmlVue v-on:click does not work on componentHow to deploy Vue app?static html and vue with bootstrap-vueLoad static HTML files in VueA-Frame & ar.js: Multiple markers & boxesVideo stuck at first frameDoes Vue not show in file #1 because of an unknown hidden character?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)
And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)
CDN I use, I put them at the end of head.
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>
My code in vue component.
<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>
Here is my console
https://imgur.com/GgDtOTn
javascript vue.js ar.js
add a comment |
I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)
And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)
CDN I use, I put them at the end of head.
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>
My code in vue component.
<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>
Here is my console
https://imgur.com/GgDtOTn
javascript vue.js ar.js
Welcome to SO! you can use Vue wrapper of AR.js. Find it out here
– varit05
Mar 24 at 13:46
@TL.robin did you eventually find out why?
– Sunyatasattva
May 25 at 0:08
add a comment |
I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)
And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)
CDN I use, I put them at the end of head.
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>
My code in vue component.
<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>
Here is my console
https://imgur.com/GgDtOTn
javascript vue.js ar.js
I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)
And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)
CDN I use, I put them at the end of head.
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>
My code in vue component.
<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>
Here is my console
https://imgur.com/GgDtOTn
javascript vue.js ar.js
javascript vue.js ar.js
asked Mar 24 at 13:27
TL.robinTL.robin
61
61
Welcome to SO! you can use Vue wrapper of AR.js. Find it out here
– varit05
Mar 24 at 13:46
@TL.robin did you eventually find out why?
– Sunyatasattva
May 25 at 0:08
add a comment |
Welcome to SO! you can use Vue wrapper of AR.js. Find it out here
– varit05
Mar 24 at 13:46
@TL.robin did you eventually find out why?
– Sunyatasattva
May 25 at 0:08
Welcome to SO! you can use Vue wrapper of AR.js. Find it out here
– varit05
Mar 24 at 13:46
Welcome to SO! you can use Vue wrapper of AR.js. Find it out here
– varit05
Mar 24 at 13:46
@TL.robin did you eventually find out why?
– Sunyatasattva
May 25 at 0:08
@TL.robin did you eventually find out why?
– Sunyatasattva
May 25 at 0:08
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324272%2fwhy-i-can-use-ar-js-in-static-html-but-not-work-in-vue-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324272%2fwhy-i-can-use-ar-js-in-static-html-but-not-work-in-vue-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to SO! you can use Vue wrapper of AR.js. Find it out here
– varit05
Mar 24 at 13:46
@TL.robin did you eventually find out why?
– Sunyatasattva
May 25 at 0:08