x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>蜜蜂教程(mifengjc.com)</title>
6
</head>
7
<body>
8
9
<video controls ondurationchange="myFunction()">
10
<source src="/examples/mov_bbb.mp4" type="video/mp4">
11
<source src="/examples/mov_bbb.ogg" type="video/ogg">
12
您的浏览器不支持 HTML5 video 元素。
13
</video>
14
<script>
15
function myFunction() {
16
alert(" video 时长已修改");
17
}
18
</script>
19
20
</body>
21
</html>