Skip to content

[Plex Connect] Chromecast plays wrong Plex track numbers >51 via Plex Connect #4924

@romartobashey

Description

@romartobashey

What version of Music Assistant has the issue?

2.8.0b12

How is the MA server installed?

Docker Container

Mandatory: Carefully read the Troubleshooting FAQ and confirm that

  • I have examined the logs and tried to resolve this issue
  • I have fixed any errors in the logs that relate to tags
  • I am not running MA across a VPN, VLAN, subnet, behind a firewall, or using local SSL or have any other complex network setup
  • I am not using or have disabled tools such as AdGuard, Pi-hole or pfSense and retested
  • I have checked my network setup to ensure mDNS/multicast is not being blocked
  • I have reviewed the Open and Closed Issues and Discussions to resolve this yourself?
  • I have reviewed the applicable player or music provider documentation
  • I have reviewed the MA Status Page
  • I have tried restarting MA and rebooting the host

As Applicable: Carefully read the Troubleshooting FAQ and confirm that

  • If using HA, I have confirmed the internal URL is set correctly
  • I have tried a wired connection for issues related to interrupted or poor playback quality
  • If the problem relates to a device then I have checked the device settings
  • If it is a frontend issue, I have tried a different widely used browser
  • For voice problems, I have sought help elsewhere before returning here
  • For playback problems, I have recycled power to the physical device

The problem

When queuing a track with track number x > 51 from any Plex album using the Plex Connect provider, playback on a Chromecast device consistently starts the wrong track. Specifically, instead of playing track x, Chromecast Audio plays track

x + (x - 51)

Examples:

  • Queuing track 52 plays track 53 (52 + (52 − 51) = 53)
  • Queuing track 53 plays track 55 (53 + (53 − 51) = 55)
  • Queuing track 60 plays track 69 (60 + (60 − 51) = 69)

From my logs:

  • I attempted to play track 94 ("Sweet Soul Music" by Arthur Conley) from the box set Beg, Scream, Shout
  • Instead, Chromecast Audio played track 137 ("Danger Heartbreak Dead Ahead" by The Marvelettes)
  • This matches the formula: 94 + (94 − 51) = 137

The issue occurs with any album where the selected track number is greater than 51. Tracks ≤ 51 always play correctly. I have reproduced this behavior across at least three different albums. Using the Spotify Connect provider with the same Chromecast device does not exhibit this issue.

@anatosun

How to reproduce

  1. Configure the Plex Connect plugin to use a Chromecast Audio device as its Music Assistant player
  2. Open a Plex player (tested with Plex Web and Plexamp)
  3. From the Plex player, select that same Chromecast Audio device as the playback target
  4. Choose any album with more than 51 tracks
  5. Attempt to play a track with track number > 51
  6. Observe that the wrong track is played, offset by x - 51

Music Providers

Plex Connect Plugin
No issue: Spotify Connect

Player Providers

Chromecast

Full log output

music-assistant.log

Additional information

What version of Home Assistant Core (if used) are your running

No response

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Linux

Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions