HTMLMediaElement: ended プロパティ

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.ended は、メディア要素が再生を終了したかどうかを示します。

論理値で、要素に含まれているメディアの再生が終了した場合に true となります。

メディアのソースが MediaStream の場合、ストリームの active プロパティの値が false であれば、この値は true です。

js
const obj = document.createElement("video");
console.log(obj.ended); // false

仕様書

Specification
HTML
# dom-media-ended-dev

ブラウザーの互換性

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
ended

Legend

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

Full support
Full support

関連情報