cpu-audio icon indicating copy to clipboard operation
cpu-audio copied to clipboard

Support of `prefers-reduced-data` feature

Open dascritch opened this issue 3 years ago • 0 comments

As an user I want to minimize my downloads To reduce my phone bill

There is a CSS rule for that, we can exploit it in javvascript to NOT getting even metadata and wait for a voluntary action from the user https://www.w3.org/TR/mediaqueries-5/#prefers-reduced-data

As for https://github.com/dascritch/cpu-audio/issues/180#issuecomment-1238250262 , we can use window.matchMedia().matches

On the other side, we can sensibilize and recommend integrators about audio encoding, and also set correctly a source order https://github.com/dascritch/cpu-audio/blob/master/INSTALL.md#indicate-a-prefered-downloadable-audio-resource

dascritch avatar Sep 26 '22 08:09 dascritch