---
title: canPlayType
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/htmlmediaelement/1630268-canplaytype
---

# canPlayType

Returns whether the media element supports the specified MIME type.

## Declaration

```data
DOMString canPlayType(
    DOMString type
);
```

## Return Value

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

## See Also

### Controlling Playback

- [load](webkitjs/htmlmediaelement/1629903-load.md)
- [pause](webkitjs/htmlmediaelement/1633571-pause.md)
- [play](webkitjs/htmlmediaelement/1630114-play.md)
