Easy Tutorial
❮ Dom Obj Base Jsref Regexp Wordchar Non ❯

Video ended Property

Video Object

Example

Check if the video playback has ended:

var x = document.getElementById("myVideo").ended;

x output result:

true

Definition and Usage

The ended property returns whether the video has ended.

The audio/video is considered ended if the playback position is at the end of the video.

Note: This property is read-only.


Browser Support

All major browsers support the ended property.

Note: This property is not supported in Internet Explorer 8 or earlier.


Syntax

Technical Details

| Return Value: | Boolean, returns true if playback has ended. Otherwise, returns false. | | --- | --- |

❮ Dom Obj Base Jsref Regexp Wordchar Non ❯