GoogleChromeLabs / GoogleChromeLabs/react-adaptive-hooks
Feature - add encoding hook for media capabilities
- Dominant language
- JavaScript
- Stars
- 5.2k
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.