-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.html
44 lines (44 loc) · 1.4 KB
/
client.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
<html>
<head>
<style>
body {
width: 100%;
height: 100%;
display: flex;
justify-content: center; /* center align the body along x-axis */
align-items: center; /* center align the body along y-axis */
}
.video-input {
display: flex;
margin-bottom: 10px;
}
.video-input input {
flex: 1;
height: 30px;
margin-right: 5px;
}
.video-input button {
border: 0;
background: dodgerblue;
box-shadow: none;
border-radius: 0px;
font-size: small;
font-weight: 500;
}
</style>
<title>HLS Player</title>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest" defer></script>
<script src="hls_setup.js" defer></script>
</head>
<body>
<div class="wrapper">
<div class="video-input">
<input id="video-url" type="text" placeholder="Enter a video HLS video url and click Play Video button">
<button onclick="setupVideo()">Play Video</button>
</div>
<div>
<video id="video" controls width="700"></video>
</div>
</div>
</body>
</html>