진행 중 사용 브라우저가 미디어 데이터를 HTML로 가져오는 과정에 있을 때 스크립트를 실행하기 위한 속성입니다.
예시
다음 코드를 실행하여 진행 중을 구현할 수 있습니다. 속성 -
<!DOCTYPE html>
<html>
<body>
<video id = "myVideo" width = "320" height = "176" controls onprogress = "display()">
<source src = "/html5/foo.ogg" type = "video/ogg" />
<source src = "/html5/foo.mp4" type = "video/mp4" />
Your browser does not support HTML5 video.
</video>
<script>
function display() {
alert("Started");
}
</script>
</body>
</html>