使用 onseeking 属性来指示 html 视频中的搜索处于活动状态。
示例当 seeking 属性设置为 true 时,您可以尝试运行以下代码来执行脚本,表明在 html 中搜索处于活动状态 -<!doctype html><html> <body> <video controls onseeking = "display()"> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> your browser does not support the video element. </video> <script> function display() { alert("seeking starts!"); } </script> </body></html>
以上就是当寻找属性设置为true时,表示html中的寻找活动正在进行时,执行一个脚本的详细内容。
