Skip to content

Instantly share code, notes, and snippets.

@alystair
Last active April 22, 2018 20:00
Show Gist options
  • Save alystair/7aea5bd6781779d9fd05cd6befdda6c1 to your computer and use it in GitHub Desktop.
Save alystair/7aea5bd6781779d9fd05cd6befdda6c1 to your computer and use it in GitHub Desktop.
Spec suggestions re: audio capabilities

Audio capabilities discovery

I'm unsure if this is something that would be part of WhatWG or W3C spec. Advice would be appreciated to move this forward.

We should be able to know if the computer is currently muting audio or has no working audio outputs. This allows us to programatically deal with the following types of situations:

  • Users has audio based disabilities
  • Users with disabled / no audio hardware
  • User has muted audio output temporarily

Potential use cases:

  • User is deaf and automatically recieves closed captions without interaction
  • Alert user that there is required audio content as part of presentation if no audio hardware is available
  • Pause video or other media if user mutes audio outside of the application

What do you think?

@ljharb
Copy link

ljharb commented May 7, 2017

ECMAScript has no concept of i/o; so this wouldn't be appropriate for the language.

@alystair
Copy link
Author

@ljharb - what group would you recommend I approach with this suggestion... is this more of a browser level thing then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment