specification intends to provide APIs to allow websites to make an optimal decision when picking media content for the user. The APIs will expose information about the decoding and encoding capabilities for a given format but also output capabilities to find the best match based on the device’s display.
Settings.enableMediaCapabilities
bool enableMediaCapabilities() @propertyGet enableMediaCapabilities property.
Returns
Enable or disable support for MediaCapabilities on pages. This
void enableMediaCapabilities(bool propval) @propertySet enableMediaCapabilities property.
Parameters
propval | Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal decision when picking media content for the user. The APIs will expose information about the decoding and encoding capabilities for a given format but also output capabilities to find the best match based on the device’s display. See also https://wicg.github.io/media-capabilities/ |