-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
Chrome and other browsers now ship with a feature to control media directly from the browser using the media session API:
https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API
https://techcrunch.com/2020/01/16/chrome-gets-global-media-controls
Problem: when using the Chrome media controls, the playback events like play, pause, ... are not triggered, ie isPlaying is not updated, resulting in an out of sync UI.
To Reproduce
Steps to reproduce the behavior:
- Using Chrome, start playing an audio file via an html button
- Use the browser media controls to pause the playback
- The audio is paused but the isPlaying variable is not updated
Expected behavior
The useAudioPlayer() state reflects the state of the audio playback.
Environment (please complete the following information):
- Browser/ browser version: Chrome
- Library version: 0.0.18
- React version: 16.3.1
- Node version: 10.15.0
Related issue: goldfire/howler.js#1262
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request