canPlayType

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

MDN Reference