GoogleChromeLabs / react-adaptive-hooks

Deliver experiences best suited to a user's device and network constraints
Apache License 2.0
5.11k stars 114 forks source link

Add hook for Media Capabilities API #25

Closed wingleung closed 4 years ago

wingleung commented 4 years ago

Moved from https://github.com/GoogleChromeLabs/adaptive-loading/pull/60 and https://github.com/GoogleChromeLabs/adaptive-loading/issues/59

The Media Capabilities API allows websites to get more information about the decoding abilities of the device/system/browser. This enables web developers to make optimal decisions when selecting media streams for the user.

addyosmani commented 4 years ago

Thanks for moving this over, @wingleung. Are you interested in working on a fresh PR to add a utility for the Media Capabilities API?

wingleung commented 4 years ago

@addyosmani Off course! I'll create a new one