forked from waveform80/pistreaming
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
47 lines (45 loc) · 1.4 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=${WIDTH}, initial-scale=1"/>
<title>h264 via mux.js streaming</title>
<style type="text/css">
body {
background: ${BGCOLOR};
text-align: center;
margin-top: 10%;
}
#video {
/* Always stretch the canvas to 640x480, regardless of its
internal size. */
width: ${WIDTH}px;
height: ${HEIGHT}px;
border: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
</style>
</head>
<body>
<script>
var websocketaddress = 'ws://${ADDRESS}/';
var width = ${WIDTH};
var height = ${HEIGHT};
</script>
<video id='video' name='video' >
</video>
<script src="scripts/lib/utils/stream.js"></script>
<script src="scripts/lib/utils/exp-golomb.js"></script>
<script src="scripts/lib/mp4/mp4-generator.js"></script>
<script src="scripts/lib/tools/mp4-inspector.js"></script>
<script src="scripts/lib/codecs/aac.js"></script>
<script src="scripts/lib/codecs/h264.js"></script>
<script src="scripts/lib/m2ts/m2ts.js"></script>
<script src="scripts/lib/m2ts/caption-stream.js"></script>
<script src="scripts/lib/m2ts/metadata-stream.js"></script>
<script src="scripts/lib/mp4/transmuxer.js"></script>
<script src="scripts/lib/flv/flv-tag.js"></script>
<script src="scripts/lib/flv/transmuxer.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>