What I see in the logs is that there’s manual pause commands sent in some cases, in those case there’s no automatic resuming as expected.
2024-10-31 11:00:03.641 Verbose MediaSessionCallback onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_PAUSE, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-10-31 11:00:03.646 Verbose MediaSessionCallback onPause
2024-10-31 11:00:03.647 Verbose MediaSessionCallback onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MEDIA_PAUSE, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-10-31 11:00:09.088 Verbose MediaSessionCallback onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_PAUSE, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-10-31 11:00:09.093 Verbose MediaSessionCallback onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MEDIA_PAUSE, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
From the logs the last call did not receive any pause command and did resume correctly.
2024-10-31 11:01:08.489 Verbose MusicPlayer New audio focus: 0
2024-10-31 11:01:08.497 Verbose ExoPlayer playWhenReady [eventTime=2505.53, mediaPos=69.62, window=0, period=0, false, USER_REQUEST]
2024-10-31 11:01:08.499 Verbose MusicPlayer onPlayWhenReadyChanged: false
2024-10-31 11:01:08.514 Verbose ExoPlayer isPlaying [eventTime=2505.53, mediaPos=69.62, window=0, period=0, false]
2024-10-31 11:01:59.489 Verbose MusicPlayer New audio focus: 2
2024-10-31 11:01:59.507 Verbose MusicPlayer New audio focus: 2
2024-10-31 11:01:59.509 Verbose ExoPlayer playWhenReady [eventTime=2556.51, mediaPos=69.63, window=0, period=0, true, USER_REQUEST]
2024-10-31 11:01:59.512 Verbose MusicPlayer onPlayWhenReadyChanged: true
2024-10-31 11:01:59.513 Verbose MediaSessionCallback onPlay
2024-10-31 11:01:59.523 Verbose ExoPlayer isPlaying [eventTime=2556.51, mediaPos=69.63, window=0, period=0, true]
Maybe you answer calls or start calls from a button on the BT device and it wrongly send audio commands too.