Plexamp Remote Control Switching

I love the new feature for remote control where you can switch without moving playback. I have noticed though that after switching to a new player the old player queue (which was paused) often flickers between play/pause state. I’ve attached an animated gif to show how it looks in Plexamp. You can see this behaviour in the Plex activity dashboard as well. It doesn’t actually progress through the queue - it’s just constantly switching between play and pause at the same timestamp.

It doesn’t affect anything, but I thought it would be worth raising. I guess it’s not ideal if the player is constantly doing this?

Let me know if there’s any logs that would be useful for this. I’m not sure if server or Plexamp would be more useful.

ScreenRecording-plexamp-remote

If the plex activity dashboard shows it then it sounds like that iPhone is sending out incorrect state updates, for which Plexamp logs might be useful.

Plexamp.log (602.8 KB)

Ok here are the plexamp logs from the iPhone, while it was flicking between play/pause. I did check and it was showing this in the activity dashboard as well.

Friko - Chemical is the track that was switching state on the iPhone at the time.

Let me know if there’s anything else you need

That log is super weird, but it’s also not playing anything locally, right? I think whatever “Living Room” is, is resulting in the toggling in state. What is that?

Yeah correct, nothing is playing locally on the iPhone. Living Room is a Raspberry Pi with plexamp headless.

The steps to reproduce were to switch to control Living Room and then as soon I start playing something there I get the Play/Pause state switching on the iPhone.

I have just tried again and it’s not happening now though. I’ll have a play over the weekend and see if it happens again

That log is super weird

Super weird how? That doesn’t sound good…

This issue is happening again, I’ve had to enable the “Move Playback with Selection” remote control setting as it’s not really usable.

I have some steps to reproduce reliably:

  • on iphone disable “Move Playback with Selection” remote control setting
  • with a play queue on iPhone, connect to another Plexamp player and start playing (it doesn’t seem to matter what that is - I reproduced with a player on both a Pi and Mac)
  • close Plexamp on the iPhone (by swiping up from the app switcher)
  • re-open the app and it gets stuck in the play/pause loop

Closing and re-opening the app seems to trigger something, which also happens when you open up the app after it’s been in the background for a while.

There’s a snippet at the bottom from the iPhone logs when it’s in the loop. It just keeps sending play/pause events.

Maybe you can try to reproduce @elan ? I really like being able to switch between players without moving playback, so would love to get this working properly.

I did check my server logs as well and saw some of these errors, I’m not sure if related

ERROR - [Req#eaeee] Unable to find client profile for device; platform=macOS, platformVersion=24.1.0, device=macOS, model=
Dec 16, 2024 20:06:56.675 [Javascript] INFO - Audio: State changed from paused to playing.
Dec 16, 2024 20:06:56.675 [0x6d6c3000] DEBUG - BASS: Stopping silence.
Dec 16, 2024 20:06:56.675 [Javascript] INFO - PlayQueue: Saving state {"source":"23c42a82fbb76b21f0af00c085c2407a604156f0","state":"playing","time":6228,"rate":1,"volume":20,"playQueueID":"284","playQueueVersion":1,"playQueueItemID":"15023"}
Dec 16, 2024 20:06:56.686 [Javascript] INFO - PlayQueue: Sending timeline in state playing time 6228 token false.
Dec 16, 2024 20:06:56.686 [Javascript] INFO - ViewState: Progress 3% (6228 ms) on item 23c42a82fbb76b21f0af00c085c2407a604156f0/4623 with token (no).
Dec 16, 2024 20:06:56.686 [Javascript] INFO - ViewState: Trying to send directly.
Dec 16, 2024 20:06:56.686 [0x6d867000] DEBUG - Networking: Create request 1944: (GET https://192-168-1-244.e2f07b400b1842e5b9cda278bcbb8ccc.plex.direct:32400/:/timeline?state=playing&duration=219000&time=6228&playQueueItemID=15023&key=%2Flibrary%2Fmetadata%2F4623&ratingKey=4623&playQueueID=284&playQueueVersion=1&containerKey=%2FplayQueues%2F284&hasMDE=1&includeFields=thumbBlurHash&X-Plex-Device-Name=iPhone) network type 2.
Dec 16, 2024 20:06:56.704 [0x6dddf000] DEBUG - Networking: Completed request 1944: (GET https://192-168-1-244.e2f07b400b1842e5b9cda278bcbb8ccc.plex.direct:32400/:/timeline?state=playing&duration=219000&time=6228&playQueueItemID=15023&key=%2Flibrary%2Fmetadata%2F4623&ratingKey=4623&playQueueID=284&playQueueVersion=1&containerKey=%2FplayQueues%2F284&hasMDE=1&includeFields=thumbBlurHash&X-Plex-Device-Name=iPhone) with code 200 (have 98 bytes) in 17 ms.
Dec 16, 2024 20:06:56.704 [Javascript] INFO - ViewState: Server reports playback state ignore.
Dec 16, 2024 20:06:57.280 [0x6eca3000] INFO - BASS: Pausing audio output (after delay: 1)
Dec 16, 2024 20:06:57.280 [0x6eca3000] INFO - BASS: Suspending player.
Dec 16, 2024 20:06:57.285 [0x6eb8b000] INFO - Audio Route: Keeping a note of when we last paused.
Dec 16, 2024 20:06:57.348 [0x6d51f000] DEBUG - BASS: Playing silence.
Dec 16, 2024 20:06:57.348 [Javascript] INFO - Audio: State changed from playing to paused.
Dec 16, 2024 20:06:57.348 [Javascript] INFO - PlayQueue: Saving state {"source":"23c42a82fbb76b21f0af00c085c2407a604156f0","state":"paused","time":6228,"rate":1,"volume":20,"playQueueID":"284","playQueueVersion":1,"playQueueItemID":"15023"}
Dec 16, 2024 20:06:57.355 [Javascript] INFO - PlayQueue: Sending timeline in state paused time 6228 token false.
Dec 16, 2024 20:06:57.355 [Javascript] INFO - ViewState: Progress 3% (6228 ms) on item 23c42a82fbb76b21f0af00c085c2407a604156f0/4623 with token (no).
Dec 16, 2024 20:06:57.355 [Javascript] INFO - ViewState: Trying to send directly.
Dec 16, 2024 20:06:57.355 [0x6d867000] DEBUG - Networking: Create request 1949: (GET https://192-168-1-244.e2f07b400b1842e5b9cda278bcbb8ccc.plex.direct:32400/:/timeline?state=paused&duration=219000&time=6228&playQueueItemID=15023&key=%2Flibrary%2Fmetadata%2F4623&ratingKey=4623&playQueueID=284&playQueueVersion=1&containerKey=%2FplayQueues%2F284&hasMDE=1&includeFields=thumbBlurHash&X-Plex-Device-Name=iPhone) network type 2.
Dec 16, 2024 20:06:57.365 [0x6eca3000] INFO - BASS: Setting audio session active to 0.
Dec 16, 2024 20:06:57.369 [0x6dddf000] DEBUG - Networking: Completed request 1949: (GET https://192-168-1-244.e2f07b400b1842e5b9cda278bcbb8ccc.plex.direct:32400/:/timeline?state=paused&duration=219000&time=6228&playQueueItemID=15023&key=%2Flibrary%2Fmetadata%2F4623&ratingKey=4623&playQueueID=284&playQueueVersion=1&containerKey=%2FplayQueues%2F284&hasMDE=1&includeFields=thumbBlurHash&X-Plex-Device-Name=iPhone) with code 200 (have 98 bytes) in 13 ms.
Dec 16, 2024 20:06:57.369 [0x6d51f000] INFO - BASS: Setting audio session active to 1.
Dec 16, 2024 20:06:57.369 [0x6d51f000] DEBUG - BASS: Resetting device (soft: 1, force: 0, initialized: 1).
Dec 16, 2024 20:06:57.370 [Javascript] INFO - ViewState: Server reports playback state ignore.
Dec 16, 2024 20:06:57.446 [0x6d51f000] DEBUG - BASS: Suspending device (sample rate: 44100, num channels: 2, soft: 1, decode only: 0, force: 0)
Dec 16, 2024 20:06:57.446 [0x6d51f000] DEBUG - BASS: We have 0 dying streams which we're going to kill immediately.
Dec 16, 2024 20:06:57.446 [0x6d51f000] INFO - BASS: Resuming audio output (started: 1)
Dec 16, 2024 20:06:57.446 [0x6d51f000] DEBUG - BASS: Sliding volume to 100.0 over 0 ms.
Dec 16, 2024 20:06:57.468 [0x6d51f000] INFO - BASS: Setting audio session active to 1.
Dec 16, 2024 20:06:57.495 [Javascript] INFO - Audio: State changed from paused to playing.

i can reproduce this here … note, i’m able to halt the play/pause loop if i switch back to the phone, and neither queue is lost or moved (so the feature might be usable for now, while elan looks for a fix)

2 Likes

Should be fixed in the next release.

1 Like

Great stuff, looking forward to the fix. Thank you!

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