0 out of 1 rated this helpful - Rate this topic

canPlayType method

Returns a string that specifies whether the client can play a given media resource type.

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

Syntax


HRESULT retVal = object.canPlayType(type, canPlay);

Parameters

type [in]

Type: BSTR

The type of media that the client can play.

canPlay [out, retval]

Type: BSTR

probably

The type of media that is most likely to be rendered.

maybe

The type of media that might be able to be rendered

[empty string]

The media type cannot be rendered.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

See also

How to use HTML5 to play video files on your webpage
How to use HTML5 to Add an Audio Player to your Webpage

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.