설치된 사용 브라우저가 미디어 날짜를 가져올 수 없을 때 스크립트를 실행하는 HTML의 속성
설치된 속성은 다음 요소에 사용할 수 있습니다 -
<video> <audio>
다음은
의 구문입니다.<video onstalled ="script">
다음은
의 구문입니다.<audio onstalled = "script">
예시
다음 코드를 실행하여 설치된 구현을 시도할 수 있습니다. 속성 -
<!DOCTYPE HTML>
<html>
<body>
<video width = "300" height = "200" controls onstalled ="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 ("Sorry! Video isn't available right now!");
}
</script>
</body>
</html>