Open Crandy9 opened 1 year ago
@Crandy9 Maybe you could try setting the html5
option to true and see if this fixes the problem.
I have a problem with something like this, and mediaSession works when html5 is set to true.
Looks like a duplicate of my #1383
I have also a fix you might want to try https://github.com/goldfire/howler.js/pull/1530 (looks like I should follow up on that PR...)
@Crandy9 Maybe you could try setting the
html5
option to true and see if this fixes the problem. I have a problem with something like this, and mediaSession works when html5 is set to true.
I`m not working
Looks like a duplicate of my #1383
I have also a fix you might want to try #1530 (looks like I should follow up on that PR...)
Too strong,That's it!
Documentation Is:
Describe Issue
I have a music player powered by howlerjs in my Vuejs app. The audio source is served to dynamically created howler instances from my Django backend API. I have custom functions for my music player that calls the howler methods (play, pause, skip forward, back) within them. So the actual howler play() and pause() methods are not called in the howler onplay() and onpause() methods. Everything works good, there are no errors and the audio correctly plays in my app. However, the chrome browser for Android and Safari for iPhone do not sense that audio is playing and therefore the music controllers do not show up in the lock screens or notifications tab of the phone.
Here is an example from https://web.dev/media-session/ what I am trying to do. But according to that article, the browser should automatically pick up when an audio file is playing in the browser and display the media controls. But that is not happening in my case
How do I notify chrome and safari that an audio file is playing to display the media controls? I have no audio html tags setup in my vuejs components because I am creating a music player from the ground up using howler. Maybe that's why?
Thank you
Here is my howlerjs code:
Suggested Improvement
I tried html: true, html: false checked other related issues here
https://github.com/goldfire/howler.js/issues/1262
and here
https://github.com/goldfire/howler.js/issues/1175#issuecomment-639518966