decodingInfoAsync

The decodingInfo() method of the MediaCapabilities interface returns a promise that fulfills with information about how well the user agent can decode/display media with a given configuration.

MDN Reference