GoogleChromeLabs / GoogleChromeLabs/react-adaptive-hooks

Feature - add encoding hook for media capabilities

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.