Media capabilities
Widely available since 2022-07-15
The navigator.mediaCapabilities
API queries the encoding and decoding abilities of the device, such as supported codecs, resolutions, and bitrates.
Learning resources on MDN
- InputDeviceInfo: getCapabilities() method
- Media Capabilities API
- MediaCapabilities: decodingInfo() method
- MediaCapabilities: encodingInfo() method
- MediaStreamTrack: getCapabilities() method
- Navigator: mediaCapabilities property
- WorkerNavigator: mediaCapabilities property
Browser support
- Chrome 66 Released on 2018-04-17
- Chrome Android 66 Released on 2018-04-17
- Edge 79 Released on 2020-01-15
- Firefox 63 Released on 2018-10-23
- Firefox for Android 63 Released on 2018-10-23
- Safari 13 Released on 2019-09-19
- Safari on iOS 13 Released on 2019-09-19
Specifications
- Media Capabilities, from Media Working Group (W3C).