Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ondurationchange event

Occurs when the IHTMLMediaElement::duration attribute is updated.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12Internet Explorer 9

Syntax

HTML Attribute <element ondurationchange = "handler(event)">
Event Property object.ondurationchange = handler;
attachEvent Method object.attachEvent("ondurationchange", handler)
addEventListener Method object.addEventListener("durationchange", handler, useCapture)

Event information

SynchronousNo
BubblesNo
CancelableNo

Event handler parameters

pEvtObj [in]

Type: Event

Standards information

Remarks

Use the IHTMLMediaElement::duration property to determine the new duration of the clip.

This event occurs immediately after onloadstart and before onloadedmetadata.

To invoke this event, do one of the following:

  • Load a media resource.

See also

Reference
onloadedmetadata
ontimeupdate

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.