I've followed this google guide (https://developers.google.com/web/updates/2017/02/media-session) and almost everything works fine. But there is one unwanted behavior: when I change the audio source (either when an audio ends or user click "next track") the notification disappear, and reappear when the audio finished loading and is starting to play. The desired behavior is keep the media notification inbetween tracks. Is there a way to do that?
I've tried setting navigator.mediaSession.playbackState to "playing" but no, no donut for me.