Spaces:
Running
Running
File size: 2,018 Bytes
7a80d29 ef4c83b |
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Video</title>
<meta name="description" content="Video - A-Frame">
<script src="../../../dist/aframe-master.js"></script>
<script src="../../js/play-on-click.js"></script>
<script src="../../js/hide-on-play.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<video id="videoBunny" preload="auto"
src="https://cdn.aframe.io/videos/bunny.mp4"
width="160" height="90" autoplay loop="true"
crossOrigin="anonymous" muted></video>
<video id="videoFireworks" preload="auto"
src="https://cdn.aframe.io/videos/fireworks.mp4"
width="160" height="90" autoplay loop="true"
crossOrigin="anonymous" muted></video>
</a-assets>
<!--
SOURCE
Title: Big Buck Bunny
Author: Blender Institute
URL: https://peach.blender.org/
-->
<a-entity material="shader: flat; src: #videoBunny"
geometry="primitive: plane; width: 160; height: 90;"
position="0 60 -250"
rotation="0 35 0"
play-on-click
visible="false">
</a-entity>
<!--
SOURCE
Title: Fireworks
Author: Motion Digital
URL: https://www.videvo.net/profile/motiondigital/
-->
<a-entity material="shader: flat; src: #videoFireworks"
geometry="primitive: plane; width: 160; height: 90"
position="0 -60 -200"
rotation="0 -35 0"
play-on-click
visible="false">
</a-entity>
<a-camera>
<a-entity
position="0 0 -1.5"
text="align: center;
width: 6;
wrapCount: 100;
color: black;
value: Click or tap to start video"
hide-on-play="#videoFireworks">
</a-entity>
</a-camera>
</a-scene>
</body>
</html> |