Video ended property
Example
Check whether video playback has ended:
var x = document.getElementById("myVideo").ended;
x The output result is:
true
Try it »
Definition and Usage
The ended property returns whether the video has ended.
If the playback position is at the end of the video, then the audio/video has ended.
Note: This property is read-only.
Browser support





All major browsers support the ended attribute.
Note: Internet Explorer 8 or earlier browsers do not support this attribute.
Syntax
videoObject
.ended
Technical Details
| Return Value: | Boolean, returns true if playback has ended, otherwise returns false. |
|---|
The Video object