-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (67 loc) · 2.35 KB
/
index.html
File metadata and controls
67 lines (67 loc) · 2.35 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HEVC/HDR 直播播放器</title>
<link rel="stylesheet" href="./styles.css">
<script defer src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script defer src="./player.js"></script>
</head>
<body>
<main class="page">
<header class="header">
<h1>直播流播放器</h1>
<p class="subtitle">支持 HEVC / HDR,自动识别多码率</p>
</header>
<section class="player-container">
<video
id="liveVideo"
class="video"
controls
playsinline
webkit-playsinline
crossorigin="anonymous"
preload="none"
poster=""
></video>
<details id="streamPanel" class="stream-panel">
<summary class="stream-panel__summary">播放源设置</summary>
<form id="streamForm" class="stream-form" autocomplete="off">
<label for="streamInput" class="stream-form__label">自定义流地址或 key</label>
<div class="stream-form__row">
<input
id="streamInput"
class="stream-form__input"
type="text"
inputmode="url"
autocomplete="off"
autocapitalize="none"
spellcheck="false"
placeholder="https://example.com/live.m3u8 或 key"
/>
<button class="stream-form__submit" type="submit">播放</button>
</div>
<label class="stream-form__proxy">
<input id="proxyToggle" type="checkbox" checked />
使用本地代理(绕过 CORS)
</label>
</form>
</details>
<div id="streamOptions" class="stream-options" hidden>
<label for="streamOptionSelect" class="stream-options__label">流类型</label>
<select id="streamOptionSelect"></select>
</div>
<div class="controls">
<label for="qualitySelect">画质</label>
<select id="qualitySelect" disabled>
<option value="auto">自动</option>
</select>
<button id="reloadButton" type="button">重新载入</button>
<button id="fullscreenButton" type="button">宽屏</button>
</div>
<div id="status" class="status" role="status"></div>
</section>
</main>
</body>
</html>