HTML DOM Video currentTime property
Examples
The time position is set to 5 seconds:
document.getElementById ( "myVideo") currentTime = 5.;
try it"
Definition and Usage
currentTime property sets or returns the current position of the video player (in seconds).
When this property is set, the player will jump to the specified location.
Browser Support
All major browsers support currentTime property.
Note: Internet Explorer 8 or earlier browser does not support this property.
grammar
Back currentTime properties:
videoObject .currentTime
Setting currentTime properties:
videoObject .currentTime = seconds
Property Value
value | description |
---|---|
seconds | Describe the current video playback position (in seconds). |
technical details
return value: | Numeric value representing the current playing time, in seconds |
---|
Video Object