Search code examples
javascripthtmlhtml5-audio

Native Chrome and Windows 10 Audio Controllers for HTML5 Audio


How can I add these native Chrome and Windows 10 controllers to HTML5 music projects?

  • "Next"
  • "previous"
  • "back a little"
  • "forward a little"

Chrome:

enter image description here

Windows 10:

enter image description here

I searched but I can't find anything but play and pause. https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play


Solution

  • The thing you are looking for is called the Media Session API.