forked from hawksley/eleVR-Web-Player
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
executable file
·74 lines (68 loc) · 2.43 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!--
* eleVR Web Player: A web player for 360 video on the Oculus
* Copyright (C) 2014 Andrea Hawksley and Andrew Lutomirski
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<!DOCTYPE html>
<html>
<head>
<title>eleVR Web Player</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="icon" sizes="196x196" href="elelogo-square.png">
<style>
body {
background-color: #000;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
color: #FFF;
margin: 0;
padding: 0;
overflow: hidden;
}
video {
width: 100%;
height: 100%;
}
#video-container {
width: 75%;
height: 75%;
margin: auto;
}
</style>
<link rel="stylesheet" href="dist/ele-vr-player.min.css">
<script src="dist/ele-vr-player.js" type="text/javascript"></script>
</head>
<body>
<div id="video-container">
<video id="video" preload="auto" controls autoplay loop="true" webkit-playsinline crossOrigin="anonymous">
<source src="therelaxatron2.mp4" type="video/mp4">
<source src="therelaxatron.webm" type="video/webm">
</video>
<script>
document.addEventListener('DOMContentLoaded', function() {
var video = document.getElementById('video');
window.player = new EleVRPlayer(video);
});
</script>
</div>
</body>
</html>