재생 중 사용 오디오/비디오 재생이 시작되었음을 사용자에게 알리는 속성입니다.
예시
미디어가 재생을 시작했을 때 스크립트를 실행하는 방법을 배우기 위해 다음 코드를 실행할 수 있습니다 -
<!DOCTYPE html>
<html>
<body>
<video id = "myid" width = "350" height = "200" controls onplaying = "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("Video started playing!");
}
</script>
</body>
</html>