YouTip LogoYouTip

Prop Video Played

# Video played Property [![Image 8: Video Object Reference](#) Video Object](#) ## Example Get the first played range (part) of the video in seconds: var x = document.getElementById("myVideo"); document.getElementById("demo").innerHTML = "Start: " + x.played.start(0) + " End: " + x.played.end(0) The _x_ output value is: Start: 0 End: 2.162583 [Try it Β»](#) * * * ## Definition and Usage The played property returns a TimeRanges object. The TimeRanges object represents the ranges of the video that the user has played or seen. A played range is a time range of the video that has been played. If the user jumps around in the video, there will be multiple played ranges. **Note:** This property is read-only. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The played property is supported by all major browsers. **Note:** Internet Explorer 8 or earlier does not support this property. * * * ## Syntax _videoObject_.played ## Return Value | Type | Description | | --- | --- | | TimeRanges Object | Represents the played ranges of the video. Properties of the TimeRanges Object: * length - Gets the number of played ranges in the video * start(_index_) - Gets the start position of a played range * end(_index_) - Gets the end position of a played range Note: The index of the first played range is 0. | * * Video Object](#)
← Prop Video PlayedProp Video Playbackrate β†’