The MediaCapabilities
interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser. The API can be used to query the browser about the decoding abilities of the device based on codecs, profile, resolution, and bitrates. The information can be used to serve optimal media streams to the user and determine if playback should be smooth and power efficient.
The information is accessed through the mediaCapabilities
property of the Navigator
interface.
MediaCapabilities.encodingInfo()
MediaCapabilities.decodingInfo()
Specification | Status | Comment |
---|---|---|
Media Capabilities The definition of 'MediaCapabilities' in that specification. | Draft | Initial definition |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 66 | ? | 63 | ? | 55 | ? |
encodingInfo
|
67
|
? | 63 | ? | ? | ? |
decodingInfo
|
66 | ? | 63 | ? | 55 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 66 | 66 | ? | ? | 55 | ? | ? |
encodingInfo
|
67
|
67
|
? | ? | ? | ? | ? |
decodingInfo
|
66 | 66 | ? | ? | 55 | ? | ? |
Navigator
interface
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities