blob: df419c51d79749d8adbdde15a2cc12abdba88d21 (
plain)
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
|
<!DOCTYPE HTML>
<html>
<head>
<title>Media test: Negative duration.</title>
</head>
<body>
<video id="v" controls src="1389304.mp4">
</video>
<p id="msg"></p>
<script type="text/javascript">
function log(x) {
msg.innerHTML = x + "<br>";
}
v.play();
v.onended = function() {
log("endded!");
let seekable = v.seekable;
for (let i = 0; i < seekable.length; ++i) {
let start = seekable.start(i);
let end = seekable.end(i);
log(`[${i}]: start=${start} end=${end}`);
}
}
</script>
</body>
</html>
|