Contents

canPlayType

Returns whether the media element supports the specified MIME type.

Declaration

DOMString canPlayType(
    DOMString type
);

Return Value

The possible string values are: “no”, “probably” and “maybe”.

See Also

Controlling Playback