This page was translated from English by the community. Learn more and join the MDN Web Docs community.
HTMLMediaElement.seekable
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
HTMLMediaElement 객체의 seekable 읽기 전용 속성은 사용자 에이전트가 seekable 속성에 접근할 때 찾을 수 있는 미디어 리소스의 범위를 나타내는 새로운 정적 정규화된 TimeRanges 객체를 반환합니다.
값
seekable 속성에 접근할 때 사용자 에이전트가 찾을 수 있는 미디어 리소스의 범위를 나타내는 새로운 정적 정규화된 TimeRanges 객체입니다.
예제
js
const video = document.querySelector("video");
const timeRangesObject = video.seekable;
const timeRanges = [];
// 객체를 살펴보고 배열을 출력합니다
for (let count = 0; count < timeRangesObject.length; count++) {
timeRanges.push([timeRangesObject.start(count), timeRangesObject.end(count)]);
}
명세
| Specification |
|---|
| HTML> # dom-media-seekable-dev> |
| Media Source ExtensionsTM> # htmlmediaelement-extensions-seekable> |
브라우저 호환성
Enable JavaScript to view this browser compatibility table.
같이 보기
- seekable을 정의하는 인터페이스는
HTMLMediaElement입니다. - 미디어 소스 확장 API
- 미디어 버퍼링, 검색 및 시간 범위