Currently, useMediaCapabilitiesDecodingInfo will check if the current device can play a certain media file.
Would be nice if we could add support for encoding information, this will allow developers to check if the device can record to a specific media type.
If feasible, we could either...
- add another hook within the media-capabilities folder called
useMediaCapabilitiesEncodingInfo
- refactor the current hook to support both API.
For now, the browser api is still in development and not available in chrome but we can already think about the use cases and wether or not we want to implement this.
Specs: https://w3c.github.io/media-capabilities/#dom-mediacapabilities-encodinginfo
Currently,
useMediaCapabilitiesDecodingInfowill check if the current device can play a certain media file.Would be nice if we could add support for encoding information, this will allow developers to check if the device can record to a specific media type.
If feasible, we could either...
useMediaCapabilitiesEncodingInfoFor now, the browser api is still in development and not available in chrome but we can already think about the use cases and wether or not we want to implement this.
Specs: https://w3c.github.io/media-capabilities/#dom-mediacapabilities-encodinginfo