You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add support for Global Media Controls by using the Media Session API so that users can play/pause from any Chrome window or from the notification shade on Android?
The text was updated successfully, but these errors were encountered:
zerodivide1
changed the title
Support Media Session to allow externalized control on Android and Chrome
[Feature Request] Support Media Session to allow externalized control on Android and Chrome
Mar 7, 2024
@remvze, I started looking into an implementation for this, it's quite simple using the Media Session API, however from what I can see, it requires us to configure Howlerjs to use HTML Audio (html5: true) rather than Web Audio... Is there any specific reason we need Web Audio in this case or could HTML audio suffice? Let me know what you think.
@arapl3y Hey there. The reason Moodist is using Web Audio instead of HTML Audio is that HTML Audio introduces a small pause between loops, which isn't ideal. The only solution was to use the Web Audio API instead. This brought several challenges, one of which is the difficulty of integrating it with Media Session. I actually tried implementing this feature multiple times, but with no success, so I’ve set it aside for now. However, I'm definitely open to any suggestions or contributions.
Would it be possible to add support for Global Media Controls by using the Media Session API so that users can play/pause from any Chrome window or from the notification shade on Android?
More info: https://developer.chrome.com/blog/media-session
The text was updated successfully, but these errors were encountered: