Plexamp continues last audio when connected to Bluetooth when closed

I downloaded plexamp for the first time a couple weeks ago and I listen to audiobooks at night. I noticed that the next day, when I have closed the app and nothing is playing, when my car’s Bluetooth connects, plexamp will continue playing the last audiobook I was listening to. The app doesn’t open but the audio shows that it’s playing in the Quick Settings even though I have that setting off unless media is currently playing.

I’m on a Google Pixel 4XL and using the latest Android 11 OS.

Server Version#: 4.64.3
Player Version#: 3.5.0

That seems like something only Android could do (and might, in some situations). If you send a log after it happens we can double check. Is it just in a paused state waiting to be played?

I will send a log later today when I reconnect.

From what I can see on my phone, Plexamp is not in a paused state unless it is in the background. I have manually closed the app and it would just start playing whenever I connect to a bluetooth device.

That sounds like a feature (e.g. my car does this when I connect). But it’s also not something we control if the system is starting the app and sending a play command.

I was thinking that too so I made sure that the media controls in Quick Settings were turned off (I don’t like that setting). I would understand my audio picking back up if I had the app open but it does it when the app is closed.

Understood, but we don’t have the ability to start ourselves :sweat_smile: Something is starting us.

Share Debug Logs.zip (291.4 KB)
I totally understand.

I just tried it again. I played audio from my phone, stopped it, closed the app and swiped it out of Quick Settings. When I connected to a bluetooth device, as soon as it connected it resumed playing. The app wasn’t open but the media player reopened in my Quick Settings. I currently use the regular Plex app and Spotify and that has never happened with those.

Log attached and thank you for looking into this!

The mapping is KEYCODE_MEDIA_PLAY = 126.

This is right at the start. Android is starting the app and sending a play event to the player which was last playing.

Sep 01, 2021 14:59:33.787 [Javascript] INFO - [MediaSessionBroadcastReceiver] Received broadcast intent Intent { act=android.intent.action.MEDIA_BUTTON flg=0x10000010 cmp=tv.plex.labs.plexamp/com.plexamp.mediasession.MediaSessionBroadcastReceiver (has extras) }
Sep 01, 2021 14:59:33.787 [Javascript] INFO - [MediaSessionCallback] onPlay
Sep 01, 2021 14:59:33.789 [Javascript] DEBUG - [Events] Attempted to send an event onRemoteControlResume before JS is ready, queueing.
Sep 01, 2021 14:59:33.790 [Javascript] INFO - [MediaSessionBroadcastReceiver] Received broadcast key event 126

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.