-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAVideoExample.html
More file actions
27 lines (23 loc) · 892 Bytes
/
AVideoExample.html
File metadata and controls
27 lines (23 loc) · 892 Bytes
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
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/0.2.0/aframe.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('video').trigger('play');
});
</script>
</head>
<body>
<a-scene>
<a-assets>
<video id="video" autoplay loop="true" src="video/Video.mp4" webkit-playsinline>
</a-assets>
<!-- Using the asset management system. -->
<a-video src="#video" width="16" height="9" position="0 1 -1"></a-video>
<!-- Defining the URL inline. Not recommended but more comfortable for web developers. -->
<!--<a-video src="video/Video.mp4" width="16" height="9" position="0 1 -1"></a-video>-->
</a-scene>
</body>
</html>