This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

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 Extensions™
# htmlmediaelement-extensions-seekable

브라우저 호환성

같이 보기