HTML Audio/Video DOM played Property
Example
var vid = document.getElementById("myVideo");
function myFunction() {
alert("Start: " + vid.played.start(0) + " End: " + vid.played.end(0));
}
Meaning
The played property returns a TimeRanges object representing the played parts of the audio/video.
Note: The first played range is index 0.
Standard Syntax
audio|video.played
Advertisement
Return Value
| Type | Description |
|---|---|
| TimeRanges Object | Returns the played parts of the audio/video.
TimeRanges Object Properties:
|