ITIMEMediaElement::type Property

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

Sets or gets the MIME type of the media object referenced by the SRC attribute.

Syntax


HRESULT ITIMEMediaElement::get_type(BSTR sType);HRESULT ITIMEMediaElement::put_type(BSTR sType);

Parameters

sType
BSTR that specifies the MIME type of the media associated with the element.
sType
BSTR that specifies the MIME type of the media associated with the element.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

By default, the server should send the MIME type to the user agent. If that mechanism fails, the MIME type is obtained from this property.

This property cannot be modified in script after the onload event fires on the document body.

See Also

Introduction to HTML+TIME

Community Additions

ADD
Show:
© 2014 Microsoft