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 July 2015.

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

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
seekable

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

같이 보기