-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
44 lines (42 loc) · 1.73 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
<!DOCTYPE html>
<html>
<head>
<title>Simple360Player Demo</title>
<link rel="stylesheet" href="css/simple-360.css">
<style>
.container {
margin: auto;
max-width: 640px;
}
</style>
</head>
<body>
<div class="container">
<h1>Simple 360 Player</h1>
<div id="video-player">
<video id="video" autoplay preload="auto" crossorigin="anonymous" style="display: none;" playsinline>
<source src="https://s3.amazonaws.com/vids.slawrence.io/bears.mp4" type="video/mp4"/>
<source src="https://s3.amazonaws.com/vids.slawrence.io/bears.webm" type="video/webm"/>
</video>
<img id="image" src="test.jpg" style="display: none;"/>
</div>
<p>Click and drag the mouse or press the arrow keys to look around.</p>
<p>Author: Sean Lawrence
<p>Code Source: <a href="https://github.com/slawrence/simple-360-player">Github</a></p>
<p>Video Source: <a href="http://www.airpano.com"
title="AirPano.com • 360° Aerial Panorama • 3D Virtual Tours Around the World"
target="_blank">AirPano.com</a></p>
</div>
<script src="lib/gl-matrix.js"></script>
<script src="src/simple-360.js"></script>
<script src="src/controls.js"></script>
<script src="src/menu.js"></script>
<script>
var videoEl = document.getElementById("video"),
player = new Simple360Player(videoEl);
player.init();
player.addPlugin(Controls);
player.addPlugin(Menu);
</script>
</body>
</html>