-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (35 loc) · 993 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>ThetaS VR LiveStream</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
overflow: hidden;
}
#container {
position: absolute;
top: 0; bottom: 0;
left: 0; right: 0;
}
#canvas {
display: none;
}
</style>
</head>
<body>
<div id="container">
<canvas id="canvas" width="1280" height="720">
</canvas>
</div>
<script src="../dist/ThetaLiveVR.js"></script>
<script>
let container = document.getElementById('container');
let canvas = document.getElementById('canvas');
let liveVR = new ThetaLiveVR(container, canvas, '/myStream.jpg');
liveVR.init();
</script>
</body>
</html>