ITIMEMediaElement::canSeek Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

Gets a value that indicates whether the media file is capable of locating a specific time in the media's duration.


HRESULT ITIMEMediaElement::get_canSeek(VARIANT_BOOL *val);


Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.

Possible Values

VARIANT_FALSE Default. Media file cannot locate a specific time in its duration.
VARIANT_TRUE Media can file locate a specific time in its duration.

Return Value

Returns S_OK if successful, or an error value otherwise.


Some streaming formats do not support seeking. The ITIMEMediaElement::canSeek property should indicate whether a media type supports seeking. Some formats, such as streaming media, do not report the correct information regarding their ability to seek.

Media must be seekable ( ITIMEMediaElement::canSeek = true), for the ITIMEMediaElement::clipBegin property or the ITIMEMediaElement::clipEnd property to work on that media.

See Also

Community Additions

© 2014 Microsoft