Course / Pro

Create an Accessible Audio Player with the HTML Media Element and React

- Web audio APIs include support for features that aren't available by default in the native HTML audio element. - The operating system includes basic controls - Custom controls must be accessible with a keyboard, and make sense to a screen reader - Don't...

Joel Hooks
  • Web audio APIs include support for features that aren't available by default in the native HTML audio element.
  • The operating system includes basic controls
  • Custom controls must be accessible with a keyboard, and make sense to a screen reader
  • Don't hide the built-in controls until you know that your custom controls are working
  • Listening to what VoiceOver reads should inform the a11y information you include
    • VoiceOver says "Elapsed Time" on its own, so we wouldn't want to write it in our code.
  • loadedmetadata should have the duration to avoid glitches from new audio not being loaded.
  • Elements should be labeled with a unique id