ontimeupdate event
[This documentation is preliminary and is subject to change.]
Occurs to indicate the current playback position.
Syntax
HTML Attribute | <element ontimeupdate = "handler(event)"> |
Event Property | object.ontimeupdate = handler; |
attachEvent Method | object.attachEvent("ontimeupdate", handler) |
addEventListener Method | object.addEventListener("timeupdate", handler, useCapture) |
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12
Event information
Synchronous | No |
Bubbles | No |
Cancelable | No |
Event handler parameters
- pEvtObj [in]
Type: IHTMLEventObj
Remarks
Use the currentTime property to retrieve the current playback position. For the total length of the audio or video clip, use duration.
To invoke this event, do one of the following:
- Play the video.
- Move the position indicator on the playback controls.
See also
Reference
Build date: 1/25/2012