비디오 재생 속성
예시
비디오의 첫 번째 재생 범위(일부)를 초 단위로 가져옵니다.
var x = document.getElementById("myVideo");
document.getElementById("demo").innerHTML = "Start: " + x.played.start(0)
+ " End: " + x.played.end(0)
정의 및 사용
Played 속성은 TimeRanges 개체를 반환합니다.
TimeRanges 객체는 사용자가 이미 재생(본)한 비디오의 범위를 나타냅니다.
재생 범위는 재생된 비디오의 시간 범위입니다. 사용자는 비디오에서 건너뛰면 여러 재생 범위를 얻습니다.
참고: 이 속성은 읽기 전용입니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
played | Yes | 9.0 | Yes | Yes | Yes |
통사론
videoObject.played
반환 값
Type | Description |
---|---|
TimeRanges Object | Represents the played parts of the video. TimeRanges Object Properties:
Note: The first played range is index 0 |
❮ 비디오 개체