HTMLWindowEvents4::oncanplay Event

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Occurs when playback is possible, but would require further buffering.

Syntax

void oncanplay(
    IHTMLEventObj *pEvtObj
);

Parameters

Return Value

No return value.

Event DISPID

DISPID_HTMLWINDOWEVENTS4_ONCANPLAY

The DISPID for this event is defined in mshtmdid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.

Event Information

Bubbles No
Cancels No
To invoke Load a media resource.
Default action N/A

Event Object Properties

The IHTMLEventObj interface contains additional information about the current event. When the oncanplay event is fired, you can use the IHTMLWindow2::event property to retrieve an IHTMLEventObj interface. To obtain an alternate interface pointer such as IHTMLEventObj2 or IHTMLEventObj3, call QueryInterface on the object.

Refer to the specific event object for additional event properties.

Remarks

The HTMLWindowEvents4::oncanplay event is raised when enough data is available to advance the playback position in the direction of playback.

This event first occurs after HTMLWindowEvents4::onloadeddata and before HTMLWindowEvents4::oncanplaythrough.

See Also

HTMLWindowEvents4::oncanplaythrough