HTML DOM Video ended property
Examples
See if the video playback has ended:
var x = document.getElementById ( "myVideo") ended.;
x The output is:
true
try it"
Definition and Usage
ended property returns whether the video has ended.
If the playback position is located at the end of the video, then audio / video has ended.
Note: This property is read-only.
Browser Support
All major browsers support ended property.
Note: Internet Explorer 8 or earlier browser does not support this property.
grammar
videoObject .ended
technical details
return value: | Boolean value that, if the play is over, it returns true. Otherwise, it returns false. |
---|
Video Object