-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (32 loc) · 1.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="https://cdn.jsdelivr.net/gh/hiukim/[email protected]/dist/mindar-image.prod.js"></script>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/hiukim/[email protected]/dist/mindar-image-aframe.prod.js"></script>
<script src="https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/dist/aframe-extras.min.js"></script>
<link rel="shortcut icon" href="favicon.ico" />
<title>HB Technologies - AR</title>
</head>
<body>
<a-scene mindar-image="imageTargetSrc: ./targets.mind;" color-space="sRGB" renderer="colorManagement: true, physicallyCorrectLights" vr-mode-ui="enabled: false" device-orientation-permission-ui="enabled: false">
<a-assets>
<video id="VideoEN" src="Video_CV_English.mp4" preload="auto" autoplay="autoplay" loop="false" ></video>
</a-assets>
<a-camera position="0 0 0" look-controls="enabled: false"></a-camera>
<a-entity mindar-image-target="targetIndex: 0">
<a-video src="#VideoEN" width="1.01" height="1.01" position="0 0 0"></a-video>
<script>
document.getElementById('VideoEN').play();
</script>
</a-entity>
<script>
window.addEventListener('click', function () {
var v = document.querySelector('#VideoEN');
v.play();
});
</script>
</a-scene>
</body>
</html>