-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (22 loc) · 854 Bytes
/
Copy pathindex.html
File metadata and controls
27 lines (22 loc) · 854 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>测试FLV编码类型</title>
</head>
<body>
<input id="url" style="width: 400px" placeholder="要检测的媒体源地址" value="https://0gradgmt1gw4nhcja8yzdrcj1.ourdvsss.com/pl3.live.huajiao.com/live_huajiao_h265/_LC_ps3_non_h265_SD_18846924015852754131568903_OX.flv?wshc_tag=0&wsiphost=ipdbm" />
<input id="btn" type="button" value="检测一下" />
<div id="output" style="padding: 30px 0"></div>
<script src="flv-vcodec-detection.js"></script>
<script>
btn.onclick = () => {
getFlvVcodecByUrl(url.value).then(vcodec => {
// vcodec 可能返回的值有:'Unknown'、'NotFlv'、'H264'、'H265'
output.innerText = '检测结果:' + vcodec;
});
};
</script>
</body>
</html>