-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathar0207-primitive-a-video.html
31 lines (27 loc) · 1.09 KB
/
ar0207-primitive-a-video.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
<!doctype HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<!-- Correcting zooming issue -->
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- Library untuk VR membangun 3D -->
<script src="./js/aframe/aframe.min.js"></script>
<!-- Library untuk AR yang melakukan pengenalan marker dan menyematkan kamera-->
<script src="./js/arjs/aframe-ar.js"></script>
<title>WebAR: a-video</title>
</head>
<body style="margin : 0px; overflow: hidden;">
<a-scene vr-mode-ui="enabled: false" embedded arjs>
<a-assets>
<video id="winter-landscape" autoplay loop="true" src="./videos/winter-landscape.mp4"></video>
</a-assets>
<a-anchor>
<a-entity rotation="-90 0 0" scale="0.25 0.25 0.25">
<!-- Using the asset management system. -->
<a-video src="#winter-landscape" width="16" height="9"></a-video>
</a-entity>
</a-anchor>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>