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
MediaSession is not updated when audio focus is temporarily lost
For example, switching to Facebook short videos. UAMP app: music paused, notification keeps showing the pause button(like it's playing at the moment).
In other cases I'm ok with setAudioAttributes(audioAttributes, handleAudioFocus = true)
but there is no way to handle this case.
my notification is fully handled by com.google.android.exoplayer2.ui.PlayerNotificationManager
For example YouTubeMusic app updates the notification button and shows "play" button when focus is temporarily taken by facebook. The same issue when receiving a phone call.
Android Auto buttons work the same.
Event EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED is not helping