-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (36 loc) · 1.07 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<title></title>
</head>
<body>
<div class="main">
<h1>倉庫監視カメラ</h1>
<h2>ノートパソコンカメラ</h2>
<div class="video">
<video id="video_smaple" controls ></video>
</div>
</div>
<script>
if(Hls.isSupported()) {
var video = document.getElementById('video_smaple');
var hls = new Hls();
// hls.loadSource('http://172.16.196.204:8000/live/souko0/index.m3u8');
hls.loadSource('http://172.16.196.204:8000/live/test/index.m3u8');
// hls.loadSource('http://localhost:8001/streams/output.m3u8');
hls.attachMedia(video);
}
</script>
</body>
<style>
.main {
text-align: center;
}
.video video {
width: 60%;
margin-top: 60px;
}
</style>
</html>