This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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

See also

Related pages

  • mediamedia
  • audio
  • audio
  • video

Attributions