미디어 객체의 기간 속성이 업데이트되면 발생합니다.
<script type=”text/javascript”> function timeUpdate(){ document.getElementById('time').innerHTML = v1.currentTime; } function durationChange(){ document.getElementById('duration').innerHTML = v1.duration; } </script> <video id="v1" controls="true" autoplay="1" src="video.aac" ontimeupdate="timeUpdate()" ondurationchange="durationChange()"/> <div>Time: <span id="time">0</span> of <span id="duration">0</span> seconds.</div>
미디어 객체
기준 명세를 바탕으로 명세 번역과 레퍼런스 제작이 이루어졌습니다. 최근 내용은 최신 명세를 확인해 주세요.