forked from michal-repo/web_vr_video_player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (94 loc) · 3.24 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
/>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<title>VR player</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
overflow: hidden;
}
footer {
position: absolute;
bottom: 0px;
right: 0px;
justify-content: center;
padding: 5px;
font-size: 12px;
background-color: #d4d4d4;
color: rgb(0, 0, 0);
}
footer a {
color: #222 !important;
}
</style>
<script type="importmap">
{
"imports": {
"three": "https://code4fukui.github.io/three.js/build/three.module.js",
"three/addons/": "https://code4fukui.github.io/three.js/examples/jsm/",
"three/examples/jsm/": "https://code4fukui.github.io/three.js/examples/jsm/",
"three-mesh-ui": "https://unpkg.com/three-mesh-ui@6.5.2/build/three-mesh-ui.module.js",
"three-mesh-ui/examples/": "https://felixmariotto.github.io/three-mesh-ui/examples/",
"three-mesh-ui/src/": "https://code4fukui.github.io/three-mesh-ui/src/"
}
}
</script>
<script defer type="module">
import JsonLoader from "./src/JsonLoader.js";
try {
new JsonLoader("files.json");
} catch (error) {
console.warn(error);
}
</script>
</head>
<body>
<video
id="video"
crossorigin="anonymous"
playsinline
style="display: none"
>
<source id="video_src" src="" type="video/mp4" />
</video>
<footer>
<p>
Icons made by <a
target="_blank"
href="https://www.flaticon.com/authors/nawicon"
>nawicon</a
>, <a
target="_blank"
href="https://www.flaticon.com/authors/alfanz"
>alfanz</a
>, <a
target="_blank"
href="https://www.flaticon.com/authors/ayub-irawan"
>ayub-irawan</a
>, <a
target="_blank"
href="https://www.flaticon.com/authors/us-and-up"
>us-and-up</a
>, <a
target="_blank"
href="https://www.flaticon.com/authors/freepik"
>freepik</a
>, from <a
target="_blank"
href="http://flaticon.com/"
>flaticon.com</a
>
/ <a href=https://github.com/code4fukui/web_vr_video_player/>src on GitHub</a>
</p>
</footer>
</body>
</html>