canPlayType
Method of dom/HTMLMediaElementdom/HTMLMediaElement
Syntax
var object = object.canPlayType();
Return Value
Returns an object of type DOM NodeDOM Node
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
String
The type of media that is most likely to be rendered.
The type of media that might be able to be rendered
The media type cannot be rendered.
Syntax
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.2
See also
Related pages
- mediamedia
audio
audio
video
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]