대기 속성은 비디오가 일시 중지되고 버퍼링되어 다시 시작될 때 트리거됩니다. 다음 코드를 실행하여 대기를 구현할 수 있습니다. 속성 -
예시
<!DOCTYPE html>
<html>
<body>
<h2 id = "test">Play</h2>
<video id = "myid" width = "320" height = "176" controls onwaiting = "myFunction()">
<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 myFunction() {
document.getElementById("test").innerHTML = "Media resumes again";
}
</script>
</body>
</html>